﻿/**

* @ak-mada-e048392c2c.min.js

*/
function Captcha(t, e) {
    $("body").on("click", "#" + t, function () {
        requireCaptcha(t, e)
    }), requireCaptcha(t, e)
}
function requireCaptcha(t, e) {
    $("#" + t).attr("src", "/static/img/loding.gif"), $.ajax({
        url: SECURECODE_HOST + "/api/securecode/captcha/get",
        timeout: 5e3,
        type: "POST",
        crossDomain: !0,
        xhrFields: {
            withCredentials: !0
        },
        data: {
            kind: e
        },
        success: function (e) {
            e.code == ERRORCODE.SUCCESS && ($("#" + t).attr("src", "data:image/png;base64," + e.captcha.image), $("#captcha_key").val(e.captcha.key))
        },
        error: function (t, e, a) { }
    })
}
function refreshCaptcha(t) {
    $("#" + t).trigger("click")
}
function tipsBomb(t) {
    return "" == t.secondText && (t.secondTextState = "hidden"), '<div class="form-tips-box">            <img src=' + t.imgUrl + ' alt="img" class="center-block" width=' + t.imgWidth + " height=" + t.imgHeight + '>            <p class="first-tips-text text-center">' + t.firstText + '</p>            <p class="second-tips-text text-center ' + t.secondTextState + '">' + t.secondText + "</p>            <a href=" + t.buttonUrl + ' class="success-url text-center center-block ' + t.buttonRadius + '">' + t.buttonText + "</a>          </div>"
}
function logout() {
    $.ajax({
        url: HERA_HOST + "/api/hera/account/logout",
        type: "POST",
        processData: !1,
        contentType: !1,
        crossDomain: !0,
        xhrFields: {
            withCredentials: !0
        },
        success: function (t) {
            delCookie("hera_sid", DOMAIN), delCookie("user_info", DOMAIN), delCookie("audit_status", DOMAIN), window.location.href = "/pages/login.html"
        }
    })
}
function select_menu() {
    var t = window.location.pathname || "/";
    "/" == t || "/pages/" == t || "/pages/index" == t || t.indexOf("/pages/index") > -1 ? $("#sketch").addClass("active") : t.indexOf("/pages/flow/") > -1 ? $("#sketch").addClass("active") : t.indexOf("/pages/product/") > -1 ? $("#management").addClass("active") : t.indexOf("/pages/account/") > -1 ? $("#account").addClass("active") : t.indexOf("/pages/codes/") > -1 ? $("#qr-code").addClass("active") : t.indexOf("/pages/address/") > -1 ? $("#address").addClass("active") : t.indexOf("/pages/prizes/") > -1 ? $("#prize").addClass("active") : t.indexOf("/pages/activity/") > -1 ? $("#activity").addClass("active") : t.indexOf("/pages/weixin-settings.html") > -1 ? $("#weixin-settings").addClass("active") : t.indexOf("/pages/data-center/") > -1 ? $("#data-center").addClass("active") : t.indexOf("/pages/scan-history.html") > -1 ? $("#scan-history").addClass("active") : t.indexOf("/pages/trace/static/") > -1 ? ($("#static").addClass("active"), $("#trace").addClass("active")) : t.indexOf("/pages/trace/track/") > -1 ? ($("#dynamic").addClass("active"), $("#trace").addClass("active")) : t.indexOf("/pages/alarm/") > -1 ? $("#early").addClass("active") : t.indexOf("/pages/company-info/") > -1 ? $("#company-info").addClass("active") : t.indexOf("/pages/product-recommend/") > -1 ? $("#product-recommend").addClass("active") : t.indexOf("/pages/red-bag/") > -1 ? $("#red-bag").addClass("active") : t.indexOf("/pages/bill/list.html") > -1 ? ($("#bill-list").addClass("active"), $("#bill").addClass("active")) : t.indexOf("/pages/bill/add.html") > -1 && ($("#bill-message").addClass("active"), $("#bill").addClass("active"))
}
function dateToString(t) {
    if (t instanceof Date) {
        var e = t.getFullYear(),
			a = t.getMonth() + 1;
        a = a < 10 ? "0" + a : a;
        var i = t.getDate();
        return i = i < 10 ? "0" + i : i, e + "" + a + i
    }
    return ""
}
function isIdCard(t) {
    var e = /^[1-9]\d{5}(19\d{2}|[2-9]\d{3})((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])(\d{4}|\d{3}X)$/i,
		a = "10X98765432",
		i = [7, 9, 10, 5, 8, 4, 2, 1, 6, 3, 7, 9, 10, 5, 8, 4, 2],
		s = 0;
    if (!e.test(t)) return !1;
    var l = t.substr(6, 4),
		n = t.substr(10, 2),
		c = t.substr(12, 2),
		r = t.substr(6, 8);
    if (r != dateToString(new Date(l + "/" + n + "/" + c))) return !1;
    for (var d = 0; d < t.length - 1; d++) s += t[d] * i[d];
    var o = s % 11,
		p = a[o];
    return t[t.length - 1].toUpperCase() == p
}
function getInputTitle(t) {
    var e = t.parent();
    return e.find("p.input-title").length > 0 ? e.find("p.input-title") : (e = e.parent(), e.find("p.input-title").length > 0 ? e.find("p.input-title") : (e = e.parent(), e.find("p.input-title")))
}
function getObjectURL(t) {
    var e = null;
    return void 0 != window.createObjectURL ? e = window.createObjectURL(t) : void 0 != window.URL ? e = window.URL.createObjectURL(t) : void 0 != window.webkitURL && (e = window.webkitURL.createObjectURL(t)), e
}
function renderCompanyName() {
    try {
        $(".render-company-name").text(getUserInfo().company_name)
    } catch (t) { }
}
function is_login() {
    return !(!getCookie("hera_sid") || !getCookie("user_info")) && getCookie("mobile")
}
function setCookie(t, e, a) {
    var i = new Date;
    i.setTime(i.getTime() + 1e3 * a), document.cookie = t + "=" + escape(e) + "; path=/; domain=" + DOMAIN + (null == a ? "" : "; expires=" + i.toGMTString())
}
function getCookie(t) {
    if (document.cookie.length > 0) {
        var e = document.cookie.indexOf(t + "=");
        if (e != -1) {
            e += t.length + 1;
            var a = document.cookie.indexOf(";", e);
            return a == -1 && (a = document.cookie.length), unescape(document.cookie.substring(e, a))
        }
    }
    return null
}
function delCookie(t, e) {
    e ? document.cookie = t + "=null; Domain=" + e + "; expires=Thu, 01-Jan-70 00:00:01 GMT; Path=/" : document.cookie = t + "=; expires=Thu, 01-Jan-70 00:00:01 GMT"
}
function require_login(t) {
    return !(!t && getCookie("hera_sid") && getCookie("user_info")) && (window.location.assign("/pages/login.html?next=" + encodeURIComponent(window.location.href)), !0)
}
function getUserInfo() {
    var t = getCookie("user_info");
    return t ? (t = t.replace(/\\054/g, ","), t = JSON.parse(t), JSON.parse(t)) : null
}
function getParameterByName(t, e) {
    e || (e = window.location.href), t = t.replace(/[\[\]]/g, "\\$&");
    var a = new RegExp("[?&]" + t + "(=([^&#]*)|&|#|$)"),
		i = a.exec(e);
    return i ? i[2] ? decodeURIComponent(i[2].replace(/\+/g, " ")) : "" : null
}
function msg_info(t, e, a) {
    e || (e = "info"), a || (a = 3e3);
    var i = (new Date).getTime() + "" + parseInt(100 * Math.random()),
		s = '<div class="pad margin no-print" id="' + i + '"><div class="callout callout-' + e + '" style="margin-bottom: 0!important;"><h4><i class="fa fa-info"></i>&nbsp;&nbsp;' + t + "</h4></div></div>";
    $(".content-header").after(s), setTimeout(function () {
        $("#" + i).fadeOut()
    }, a)
}
function get_duration(t, e) {
    var a = (e - t) / 1e3;
    if (a > 0) {
        expire_hour = parseInt(a / 3600);
        var i = a - 3600 * expire_hour;
        return expire_minute = parseInt(i / 60), expire_second = i - 60 * expire_minute, [expire_hour, expire_minute, expire_second]
    }
    return [0, 0, 0]
}
function get_audit_status(t) {
    var e = getCookie("audit_status");
    return e && 1 != t || $.ajax({
        url: HERA_HOST + "/api/hera/company/audit-status/",
        type: "GET",
        processData: !1,
        contentType: !1,
        crossDomain: !0,
        async: !1,
        xhrFields: {
            withCredentials: !0
        },
        success: function (t) {
            e = t.company_status + "," + t.brand_status, setCookie("audit_status", e)
        }
    }), e ? {
        company_status: parseInt(e.split(",")[0]),
        brand_status: parseInt(e.split(",")[1])
    } : {
        company_status: "",
        brand_status: ""
    }
}
function getTraceTipsUse() {
    var t = getCookie("trace_tips");
    return t ? 1 : (setCookie("trace_tips", 1), 0)
}
function getCompanyTipsUse() {
    var t = getCookie("company_tips");
    return t ? 1 : (setCookie("company_tips", 1), 0)
}
function no_need_template() {
    if ($("#not-need-template").length < 1) {
        require_login(), renderCompanyName();
        var t = get_audit_status(),
			e = template("nav", {});
        $("#navbar").append(e);
        try {
            var a = getUserInfo().user_name
        } catch (i) {
            var a = ""
        }
        10 == t.company_status && 5 == t.brand_status && (a = getUserInfo().company_name);
        var e = template("header", {
            username: a,
            company_status: t.company_status,
            brand_status: t.brand_status
        });
        $("#header").append(e)
    }
}
function set_meiqia() {
    try {
        !
		function (t, e, a, i, s, l, n) {
		    t[i] = t[i] ||
			function () {
			    (t[i].a = t[i].a || []).push(arguments)
			}, l = e.createElement(a), n = e.getElementsByTagName(a)[0], l.async = !0, l.charset = "UTF-8", l.src = "//static.meiqia.com/dist/meiqia.js", n.parentNode.insertBefore(l, n)
		}(window, document, "script", "_MEIQIA"), _MEIQIA("entId", 49234)
    } catch (t) { }
}
function auditCompayBrandNotPass(t) {
    tipsBombObj = {
        tipsKinds: "认证提示",
        tipsText: t,
        btnLeftUrl: "javascript:;",
        btnLeftFunction: closeDialog,
        btnLeftText: "取消",
        btnRightUrl: "/pages/account/account.html",
        btnRightFunction: "",
        btnRightText: "查看",
        btnState: "",
        closePageText: ""
    }, tipsBombSmall(tipsBombObj)
}
function audit_status_tips(t) {
    var e = get_audit_status();
    return 10 == e.company_status && 5 == e.brand_status || auditCompayBrandNotPass("公司或品牌尚未完成实名认证，完成认证后方可" + t + "。"), e
}


/*************************************************************裁剪插件start*****************************************/
function deal_cropper(t) {
    function e() {
        var t = cropper.getDataURL();
        $("img.show-img").attr("src", t)
    }
    t || (t = 300);
    var a = {
        thumbBox: ".thumbBox",
        spinner: ".spinner",
        onloadFunction: e,
        width: t,
        imgSrc: ""
    };
    cropper = $(".imageBox").cropbox(a)
    ,$(".upload-file-cropper").on("change", function () {
        var t = new FileReader;
        t.onload = function (t) {
            a.imgSrc = t.target.result, cropper = $(".imageBox").cropbox(a)
        }, this.files[0] && t.readAsDataURL(this.files[0])
    })
    , $("#btnCrop").on("click", function () {
        
        var t = cropper.getDataURL();
        $("img.show-img").attr("src", t)
    })
    , $("#btnZoomIn").on("click", function () {
        cropper.zoomIn();
        var t = cropper.getDataURL();
        $("img.show-img").attr("src", t)
    })
    , $("#btnZoomOut").on("click", function () {
        cropper.zoomOut();
        var t = cropper.getDataURL();
        $("img.show-img").attr("src", t)
    })
}


function imgFormCheck() {
    $("#upload-file-img").val() || $("#upload-file").val() || $(".img-error-tips").removeClass("hidden")

}

function cutString(t, e) {
    if (2 * t.length <= e) return t;
    for (var a = 0, i = "", s = 0; s < t.length; s++) if (i += t.charAt(s), t.charCodeAt(s) > 128) {
        if (a += 2, a >= e) return i.substring(0, i.length - 1) + "..." + t.substring(t.length - 6, t.length)
    } else if (a += 1, a >= e) return i.substring(0, i.length - 2) + "..." + t.substring(t.length - 6, t.length);
    return i
}
/*************************************************************裁剪插件end*****************************************/




    function fen_to_yuan(t, e) {
        return null == e && (e = 0), Decimal.div(t, 100).toFixed(e)
    }
    function yuan_to_fen(t) {
        return Decimal.mul(Number(t).toFixed(2), 100).toNumber()
    }
    function baidu_tongji() {
        !
        function () {
            var t = document.createElement("script");
            t.src = "https://hm.baidu.com/hm.js?23f43c4c5aa6eba959c001fec0761b91";
            var e = document.getElementsByTagName("script")[0];
            e.parentNode.insertBefore(t, e)
        }()
    }
    function chance_to_per(t) {
        return Decimal.mul(t, 100).toNumber()
    }
    function chance_to_dec(t) {
        return Decimal.div(t, 100).toNumber()
    }
    function percent_display(t, e) {
        return 0 == e ? "0%" : (t / e * 100).toFixed(2) + "%"
    }
    function isIE() {
        return !!(window.ActiveXObject || "ActiveXObject" in window)
    }
    function isNull(t) {
        return null == t || void 0 == t || "" == t
    }
    function b64ImgToBlob(t) {
        for (var e = atob(t.split(",")[1]), a = t.split(",")[0].split(":")[1].split(";")[0], i = new Uint8Array(e.length), s = 0; s < e.length; s++) i[s] = e.charCodeAt(s);
        var l = new Blob([i], {
            type: a
        });
        return {
            blob: l,
            mine: a
        }
    }
    function uploadFile(t, e, a, i) {
        isNull(a) && (a = "0");
        var s = new FormData;
        if (s.append("is_public", a), i) {
            var l = b64ImgToBlob(t);
            s.append("file", l.blob, "blob." + l.mine.split("/")[1])
        } else s.append("file", t);
        $.ajax({
            url: "/OriginsMaterial/Upload",
            type: "POST",
            data: s,
            processData: !1,
            contentType: !1,
            crossDomain: !0,
            xhrFields: {
                withCredentials: !0
            },
            success: function (t) {
                t = t.split("。")[1];
                e(t)
            },
            error: function (t, e, a) {
            
                noticeMsg("上传图片失败，请重新上传！")
            }
        })
    }
    function init_ueditor() {
        return ue = UE.getEditor("cms-bar", {
            toolbars: [
                ["undo", "redo", "|", "fontsize", "|", "blockquote", "horizontal", "simpleupload", "drafts"],
                ["bold", "italic", "underline", "forecolor", "|", "justifyleft", "justifycenter", "justifyright", "justifyjustify", "|", "insertorderedlist", "insertunorderedlist"]
            ],
            serverUrl: PRODUCT_HOST + "/api/code/ueditor/controller/",
            autoFloatEnabled: !0,
            elementPathEnabled: !1,
            maximumWords: 2e4,
            saveInterval: 3e4,
            autoHeightEnabled: !1,
            initialContent: ""
        }), ue
    }
    function getProductId(t) {
        $.ajax({
            url: ACTIVITY_HOST + "/api/activity/project/manager/fetch-project-create-info/",
            timeout: 5e3,
            type: "GET",
            crossDomain: !0,
            data: {
                status: 10
            },
            xhrFields: {
                withCredentials: !0
            },
            success: function (e) {
                switch (e.code) {
                    case ERRORCODE.SUCCESS:
                        "function" == typeof t && t(e);
                        var a = template("activity/product_list", e);
                        $("#product-list-tpl").html(a);
                        break;
                    default:
                        var i = {
                            tipsKinds: "请求失败",
                            tipsText: "请刷新页面后重试。",
                            btnLeftUrl: "javascript:;",
                            btnLeftFunction: closeDialog,
                            btnLeftText: "取消",
                            btnRightUrl: "",
                            btnRightFunction: "",
                            btnRightText: "认证",
                            btnState: "hidden",
                            closePageText: 3,
                            redirectUrl: ""
                        };
                        tipsBombSmall(i)
                }
            }
        })
    }
    function activity_period(t, e) {
        var a;
        $(t).datetimepicker({
            format: "yyyy-mm-dd hh:ii",
            language: "zh-CN",
            autoclose: !0
        }).on("changeDate", function (i) {
            a = $(this).val(), $(t).removeClass("error-input"), $(e).removeClass("error-input"), $("#start-time-error").addClass("hidden"), $(e).val() ? $(t).val() > $(e).val() && ($('<span class="error pull-right error-tips">结束时间必须大于开始时间</span>').appendTo("#date-limit"), $(t).addClass("error-input"), $(e).addClass("error-input")) : "" == $(e).val() && ($(e).addClass("error-input"), $('<span class="error pull-right error-tips">结束时间必填</span>').appendTo("#date-limit")), $(e).datetimepicker("remove"), $(e).datetimepicker({
                format: "yyyy-mm-dd hh:ii",
                language: "zh-CN",
                autoclose: !0,
                startDate: a
            }).on("changeDate", function (a) {
                $(t).removeClass("error-input"), $(e).removeClass("error-input"), $("#end-time-error").addClass("hidden")
            })
        })
    }
    function activity_period_modify(t, e) {
        var a, i;
        $(t).datetimepicker({
            format: "yyyy-mm-dd hh:ii",
            language: "zh-CN",
            autoclose: !0
        }).on("changeDate", function (i) {
            a = $(this).val(), $(t).removeClass("error-input"), $(e).removeClass("error-input"), $("#start-time-error").addClass("hidden"), $(e).val() ? $(t).val() > $(e).val() && ($('<span class="error pull-right error-tips">结束时间必须大于开始时间</span>').appendTo("#date-limit"), $(t).addClass("error-input"), $(e).addClass("error-input")) : "" == $(e).val() && ($(e).addClass("error-input"), $('<span class="error pull-right error-tips">结束时间必填</span>').appendTo("#date-limit"))
        }), i = "" !== $(t).val() ? moment($(t).val()) : moment(), $(e).datetimepicker({
            format: "yyyy-mm-dd hh:ii",
            language: "zh-CN",
            autoclose: !0,
            startDate: i.format("YYYY-MM-DD HH:mm")
        }).on("changeDate", function (a) {
            $(t).removeClass("error-input"), $(e).removeClass("error-input"), $("#end-time-error").addClass("hidden")
        })
    }
    function datatable_bsort(t) {
        $(t).DataTable({
            sDom: '<"top">t<"bottom"ilp<"clear">>',
            aLengthMenu: [5, 10, 15, 20],
            iDisplayLength: 5,
            searching: !1,
            bSort: !1,
            language: {
                emptyTable: "没有数据",
                loadingRecords: "加载中...",
                processing: "查询中...",
                lengthMenu: "每页显示 _MENU_ 条",
                paginate: {
                    first: "第一页",
                    last: "最后一页",
                    next: '<i class="fa fa-chevron-right"></i>',
                    previous: '<i class="fa fa-chevron-left"></i>'
                },
                sInfo: "共 _TOTAL_ 条记录，",
                infoEmpty: "共 _TOTAL_ 条记录，"
            }
        })
    }
    function dataTableSorting(t, e, a, i, s, l, n) {
        var c = $(t).DataTable({
            destroy: !0,
            dom: 't<"bottom clearfix"ilp>',
            aLengthMenu: [10, 15, 20],
            iDisplayLength: 10,
            searching: !1,
            aaSorting: e,
            sortClasses: !1,
            aoColumnDefs: [{
                bSortable: !1,
                aTargets: a
            }],
            language: {
                emptyTable: '<div class="empty no-alarm"><div class="empty-icon iconfont icon-zanwujilu"></div><p class="empty-text">' + i + "</p></div>",
                loadingRecords: "加载中...",
                lengthMenu: "每页显示 _MENU_ 条",
                paginate: {
                    first: "第一页",
                    last: "最后一页",
                    next: '<i class="fa fa-chevron-right"></i>',
                    previous: '<i class="fa fa-chevron-left"></i>'
                },
                sInfo: "共 _TOTAL_ 条记录，",
                infoEmpty: "共 _TOTAL_ 条记录，"
            }
        });
        if (c.on("order.dt search.dt", function () {
            c.column(0, {
            search: "applied",
            order: "applied"
        }).nodes().each(function (t, e) {
                t.innerHTML = e + 1
        })
        }).draw(), l) if (s > 0) {
            for (var r = "", d = 0; d < n.length; d++) r += '<td class="data_center-sum-font">' + n[d] + "</td>";
            $('<tr class="last-sum-tr"><td class="text-center data_center-sum-font sum-first" colspan="2">总计</td>' + r + "</tr>").appendTo(t), $(t).on("draw.dt", function () {
                $('<tr class="last-sum-tr"><td class="text-center data_center-sum-font sum-first" colspan="2">总计</td>' + r + "</tr>").appendTo(t)
            })
        } else $(t).addClass("empty-table")
    }
    function add0(t) {
        return t < 10 ? "0" + t : t
    }
    function format(t) {
        var e = t.getFullYear(),
            a = t.getMonth() + 1,
            i = t.getDate();
        t.getHours(), t.getMinutes(), t.getSeconds();
        return e + "-" + add0(a) + "-" + add0(i)
    }
    function initSearchTimeInput() {
        var t;
        $("#start-time-select").datetimepicker({
            format: "yyyy-mm-dd",
            language: "zh-CN",
            autoclose: !0,
            startDate: moment("2016-01-01").format("YYYY-MM-DD"),
            endDate: moment().format("YYYY-MM-DD"),
            startView: 4,
            minView: 2
        }).on("changeDate", function () {
            t = moment($(this).val()).format("YYYY-MM-DD"), $("#end-time-select").datetimepicker("remove"), $("#end-time-select").datetimepicker({
                format: "yyyy-mm-dd",
                language: "zh-CN",
                autoclose: !0,
                startDate: t,
                endDate: moment().format("YYYY-MM-DD"),
                startView: 4,
                minView: 2
            })
        })
    }
    function btnSearchTime(t, e, a, i) {
        $("span.select-btn").on("click", function () {
            $("span.select-btn").removeClass("select"), $(this).addClass("select"), e = moment().format("YYYY-MM-DD"), $("#start-time-select").val("").attr("placeholder", "年/月/日"), $("#end-time-select").val("").attr("placeholder", "年/月/日"), t = "最近7天" === $(this).html() ? moment().subtract(6, "days").format("YYYY-MM-DD") : moment().subtract(29, "days").format("YYYY-MM-DD"), i && $("#statis-cycle").html("统计周期：" + t + " 至 " + e), a(t, e)
        }), $("#start-time-select").on("change", function () {
            $("span.select-btn").removeClass("select"), t = $(this).val(), i && $("#statis-cycle").html("统计周期：" + t + " 至 " + e), a(t, e)
        }), $("#end-time-select").on("change", function () {
            $("span.select-btn").removeClass("select"), e = $(this).val(), i && $("#statis-cycle").html("统计周期：" + t + " 至 " + e), a(t, e)
        })
    }
    function getAdcodeByProvince(t) {
        var e = {
            "北京": "110000",
            "天津": "120000",
            "河北": "130000",
            "山西": "140000",
            "内蒙古": "150000",
            "辽宁": "210000",
            "吉林": "220000",
            "黑龙江": "230000",
            "上海": "310000",
            "江苏": "320000",
            "浙江": "330000",
            "安徽": "340000",
            "福建": "350000",
            "江西": "360000",
            "山东": "370000",
            "河南": "410000",
            "湖北": "420000",
            "湖南": "430000",
            "广东": "440000",
            "广西": "450000",
            "海南": "460000",
            "重庆": "500000",
            "四川": "510000",
            "贵州": "520000",
            "云南": "530000",
            "西藏": "540000",
            "陕西": "610000",
            "甘肃": "620000",
            "青海": "630000",
            "宁夏": "640000",
            "新疆": "650000",
            "台湾": "710000",
            "香港": "810000",
            "澳门": "820000"
        };
        return e[t]
    }
    function initChinaMap(t, e, a, i) {
        var s = 0,
            l = 9999999;
        e.map(function (t) {
            t.name = t.province.replace("省", "").replace("市", "").replace("维吾尔", "").replace("自治区", "").replace("壮族", "").replace("回族", ""), t.value = t.total, s = t.value > s ? t.value : s, l = t.value < l ? t.value : l
        }), s == l && (s += 10);
        var n = {
            title: {
                subtext: "",
                left: "center"
            },
            tooltip: {
                trigger: "item"
            },
            legend: {
                orient: "vertical",
                left: "left",
                data: []
            },
            visualMap: {
                min: l - l % 10 < 0 ? 0 : l - l % 10,
                max: s || 10,
                left: "left",
                top: "bottom",
                text: ["高", "低"],
                color: ["#006699", "#E1FFFF"],
                calculable: !0
            },
            toolbox: {
                show: !1
            },
            series: [{
                name: i,
                type: "map",
                mapType: "china",
                mapLocation: {
                    x: 0,
                    y: 0,
                    height: "90%"
                },
                roam: !1,
                label: {
                    normal: {
                        show: !0
                    },
                    emphasis: {
                        show: !0
                    }
                },
                data: e
            }]
        };
        n && "object" == typeof n && (t.clear(), t.setOption(n, !0)), a && t.on("click", function (t) {
            var e = getAdcodeByProvince(t.data.name);
            null != t.data.value && (window.location = a + t.data.name + "&adcode=" + e + "&times=" + (t.data.value || 0))
        })
    }
    function initProvinceMap(t, e) {
        adcode = adcode.slice(0, 2) + "0000";
        var a = 0,
            i = 9999999;
        t.map(function (t) {
            t.name = t.city, t.value = t.total, a = t.value > a ? t.value : a, i = t.value < i ? t.value : i
        }), a == i && (a += 10), $.get("/static/libs/echarts/3.6.1/map-data/" + adcode + ".json", function (s) {
            echarts.registerMap(adcode, s);
            var l = echarts.init(document.getElementById("main"));
            l.setOption({
                visualMap: {
                    min: i - i % 10 < 0 ? 0 : i - i % 10,
                    max: a || 10,
                    left: "left",
                    top: "bottom",
                    text: ["高", "低"],
                    calculable: !0
                },
                tooltip: {
                    trigger: "item"
                },
                toolbox: {
                    show: !1
                },
                series: [{
                    name: e,
                    type: "map",
                    map: adcode,
                    mapLocation: {
                        x: 0,
                        y: 0,
                        height: "60%"
                    },
                    data: t
                }]
            })
        })
    }
    function tipsBombSmall(t) {
        "" !== t.closePageText ? t.closeTextState = "" : t.closeTextState = "hidden", $('<div class="mask-box">            <div class="content-tips-box">              <span class="close-mask-btn close-btn">                <i class="iconfont icon-icclose48px"></i>              </span>              <p class="tips-kinds">' + t.tipsKinds + '</p>              <p class="under-tips-text">' + t.tipsText + '</p>              <p class="close-pages-text ' + t.closeTextState + '"><span class="close-time-tips">' + t.closePageText + '</span> 秒钟将自动关闭</p>              <a href="' + t.btnLeftUrl + '" onclick="btnLeftFun()" class="tips-left-btn event-btn pull-left ' + t.btnState + '">' + t.btnLeftText + '</a>              <a href="' + t.btnRightUrl + '" onclick="btnRightFun()" class="tips-right-btn event-btn pull-right ' + t.btnState + '">' + t.btnRightText + "</a>            </div>          </div>").appendTo("body"), "" !== t.closePageText && closeTimeCut(t.closePageText, t.redirectUrl)
    }
    function btnLeftFun() {
        "function" == typeof tipsBombObj.btnLeftFunction && tipsBombObj.btnLeftFunction()
    }
    function btnRightFun() {
        "function" == typeof tipsBombObj.btnRightFunction && tipsBombObj.btnRightFunction()
    }
    function closeTimeCut(t, e) {
        var a = Number(t),
            i = setInterval(function () {
                $(".close-time-tips").html(--a), 0 == a && ($(".mask-box").addClass("hidden"), clearInterval(i), "" !== e && (window.location.href = e))
            }, 1e3)
    }
    function closeDialog() {
        $(".mask-box").addClass("hidden")
    }
    function page_reload() {
        window.location.reload()
    }
    function networkErrorMsg(t) {
        var e = "";
        t && (e = window.location.href), tipsBombObj = {
            tipsKinds: "网络问题",
            tipsText: "网络请求有问题，请刷新或者稍后重试",
            btnLeftUrl: "javascript:;",
            btnLeftFunction: closeDialog,
            btnLeftText: "取消",
            btnRightUrl: "javascript:;",
            btnRightFunction: page_reload,
            btnRightText: "刷新",
            btnState: "",
            closePageText: "5",
            redirectUrl: e
        }, tipsBombSmall(tipsBombObj)
    }
    function noticeMsg(t, e) {
        var a = "";
        e && (a = window.location.href), tipsBombObj = {
            tipsKinds: "提示",
            tipsText: t,
            btnLeftUrl: "javascript:;",
            btnLeftFunction: closeDialog,
            btnLeftText: "",
            btnRightUrl: "javascript:;",
            btnRightFunction: closeDialog,
            btnRightText: "",
            btnState: "hidden",
            closePageText: "3",
            redirectUrl: a
        }, tipsBombSmall(tipsBombObj)
    }
    function countDownMsg(t, e, a) {
        tipsBombObj = {
            tipsKinds: t,
            tipsText: e,
            btnLeftUrl: "javascript:;",
            btnLeftFunction: closeDialog,
            btnLeftText: "",
            btnRightUrl: "javascript:;",
            btnRightFunction: closeDialog,
            btnRightText: "",
            btnState: "hidden",
            closePageText: "3",
            redirectUrl: a
        }, tipsBombSmall(tipsBombObj)
    }



    /*----------------------------------------------全局变量start------------------------------*/
    var CaptchaType = {
        Register: 1,
        Login: 2,
        ForgotPasswd: 3,
        ChangeMobile: 4,
        ChangeMobileVerify: 5
    };
    var tipsTextObj = {
        imgUrl: "/static/img/tips-icon.png",
        imgWidth: 82,
        imgHeight: 82,
        firstText: "恭喜，登录密码找回成功！",
        secondText: "您的注册手机号为：123****5598",
        buttonUrl: "/pages/index.html",
        buttonText: "立即登录",
        buttonRadius: "has-radius"
    };
    jQuery.support.cors = !0;
    var SECURECODE_HOST = "http://mada.zhengyitech.com",
        HERA_HOST = "http://mada.zhengyitech.com",
        PRODUCT_HOST = "http://mada.zhengyitech.com",
        ACTIVITY_HOST = "http://mada.zhengyitech.com",
        STATIS_HOST = "http://mada.zhengyitech.com",
        SCAN_HOST = "http://mada.zhengyitech.com",
        M_HOST = "http://ak-m.zhengyitech.com",
        DOMAIN = ".zhengyitech.com",
        ERRORCODE = {
            SUCCESS: 0,
            UNKNOWN: 1,
            FAILED: 2,
            UPGRADING: 3,
            SERVER_TOO_BUSY: 4,
            NOT_IMPLEMENTED: 5,
            IN_BLACKLIST: 6,
            SIGN_ERROR: 7,
            REQUEST_TOO_OFTEN: 9,
            PERMISSION_DENIED: 10,
            PARAM_NOT_ENOUGH: 11,
            PARAM_ERROR: 12,
            NOT_FOUND: 13,
            NOT_LOGIN: 14,
            USER_DEACTIVE: 15,
            WEIXIN_NOT_LOGIN: 16,
            SUPERUSER_PERMISSION_DENIED: 17,
            ACCOUNT_INVALID_CAPTCHA: 10004,
            INVALID_PASSWORD: 30001,
            HAD_USED: 30002,
            INVALID_CODE: 30003,
            INVALID_CAPTCHA: 30004,
            SEND_VERIFICATION_OVER_RATE: 30005,
            NOT_AUDIT: 30006,
            NOT_REGISTER_MOBILE: 30007,
            PAY_FAILED: 45007,
            PRODUCT_ID_ERROR: 46010,
            AMOUNT_ERROR: 46013
        };
    /*----------------------------------------------全局变量end------------------------------*/



    /*----------------------------------------------jQuery.validator 自定义验证     数据验证start------------------------------*/
    try {
        jQuery.extend(jQuery.validator.messages, {
            required: "请填写内容",
            equalTo: "请输入相同的密码",
            email: "请输入合法的邮箱"
        }),
        $.validator.addMethod("mobile", function (t, e, a) {
            var i = new RegExp(/^[T1][34578]\d{9}$/);
            return this.optional(e) || i.test(t)
        }, "手机号码格式不正确"),
        $.validator.addMethod("taxpayer_number", function (t, e, a) {
            var i = new RegExp(/^[A-Za-z0-9]{15,20}$/);
            return this.optional(e) || i.test(t)
        }, "纳税号格式不正确"),
        $.validator.addMethod("contact", function (t, e, a) {
            var i = new RegExp(/^[T1][34578]\d{9}$/),
                s = new RegExp(/^((\d{3,4}\-)|)\d{7,8}(|([-\u8f6c]{1}\d{1,5}))$/),
                l = new RegExp(/^(400|800)[0-9\-]{7,9}$/);
            return this.optional(e) || s.test(t) || i.test(t) || l.test(t)
        }, "联系方式不正确"),
        $.validator.addMethod("code", function (t, e, a) {
            var i = new RegExp(/^\d{6}$/);
            return this.optional(e) || i.test(t)
        }, "请输入正确的短信验证码"),
        $.validator.addMethod("img_code", function (t, e, a) {
            var i = new RegExp(/^\d{4}$/);
            return this.optional(e) || i.test(t)
        }, "请输入正确的验证码"),
        $.validator.addMethod("password", function (t, e, a) {
            var i = new RegExp(/^(?!\D+$)(?![^a-zA-Z]+$)([\x20-\x7f]){8,32}$/);
            return this.optional(e) || i.test(t)
        }, "请输入8-32位字符，须包含数字和字母"),
        $.validator.addMethod("id_card", function (t, e, a) {
            return this.optional(e) || isIdCard(t)
        }, "请输入正确身份证号"),
        $.validator.addMethod("business_license_id", function (t, e, a) {
            return 15 == t.length || 18 == t.length
        }, "请输入正确营业执照号"),
        $.validator.addMethod("corporation_name", function (t, e, a) {
            return t.length <= 50 && t.length >= 2
        }, "请输入正确姓名");
        var noSelectProvince = "1100",
            noSelectAdcode = "1101";
        $.validator.addMethod("address_select", function (t, e, a) {
            return t !== noSelectProvince && t !== noSelectAdcode
        }, "请选择完整的地区信息"),
        $.validator.addMethod("ten_thousand_multi", function (t, e, a) {
            var i = new RegExp(/^\d{1,}0{4}$/);
            return this.optional(e) || i.test(t)
        }, "必须是10000的倍数"),
        $.validator.addMethod("greater_than_time", function (t, e, a) {
            return /Invalid|NaN/.test(new Date(t)) ? isNaN(t) && isNaN($(a).val()) || Number(t) > Number($(a).val()) : new Date(t) > new Date($(a).val())
        }, "大于"),
        $.validator.addMethod("checkSize", function (t, e, a) {
            var i;
            if (i = "text" == $(e).attr("type") ? $(e).siblings(":input[type=file]") : $(e), i.length > 0) {
                try {
                    var s = i[0].files[0].size
                } catch (l) {
                    return !0
                }
                var n = 1024 * a * 1024;
                return !(s > n)
            }
            return !0
        }, "文件大小超出限制"), $.validator.addMethod("check_format", function (t, e, a) {
            var i = t.split("\\").pop();
            if ("" == i) return !0;
            var s = i.toLowerCase().split("."),
                l = s[s.length - 1];
            return l == a
        }, "上传格式不适合")
    } catch (err) { }

    /*----------------------------------------------数据验证end------------------------------*/
    /**/

    /*----------------------------------------------jQuery.validator验证回调函数 start------------------------------*/
    var jquery_valid_errorPlacement = function (t, e) {
        var a = getInputTitle($(e));
        a.find(".error-tips").remove(), $(t).addClass("pull-right error-tips"), $(t).appendTo(a)
    },
        jquery_valid_success = function (t) {
            $(t).parent().parent().find(".input-in").removeClass("error-input")
        },
        jquery_valid_highlight = function (t) {
            return !0
        },
        jquery_valid_onfocusout = function (t) {
            var e = $(t).valid(),
                a = getInputTitle($(t));
            e ? ($(t).parent().parent().siblings(".verify-show").css("border", "1px solid #e7e7e7"), a.find('span[class*="error-tips"]').addClass("hidden")) : a.length > 0 ? ($(t).addClass("error-input"), a.find('span[class*="error-tips"]').removeClass("hidden")) : $(t).siblings("span.upload-error-tips").addClass("hidden")
        },
        jquery_valid_invalidHandler = function (t, e) {
            $.each(e.errorList, function (t, e) {
                if ($(e.element).attr("verify")) $(e.element).parent().parent().siblings(".verify-show").css("border", "1px solid #ef5a50"), 0 == $(e.element).siblings("span.upload-error-tips").length && $('<span class="upload-error-tips red-text">请选择证件图片</span>').appendTo($(e.element).parent());
                else {
                    $(e.element).addClass("error-input");
                    var a = getInputTitle($(e.element));
                    a.find('span[class*="error-tips"]').removeClass("hidden")
                }
            })
        },
        jquery_valid_onfocusin = function (t) {
            var e = getInputTitle($(t));
            e.length > 0 ? e.find('span[class*="error-tips"]').addClass("hidden") : $(t).parent().find('span[class*="upload-error-tips"]').addClass("hidden")
        },
        add_errors = function (t, e) {
            var a = getInputTitle($('input[name="' + t + '"]'));
            a.find(".error-tips").remove();
            var i = $("<span>").addClass("error pull-right error-tips").text(e);
            $(i).appendTo(a)
        };
    /*----------------------------------------------jQuery.validator验证回调函数 end------------------------------*/








    /*----------------------------------------------jQuery遮罩层 start------------------------------*/
    /*该函数用于更改jQuery中AJAX请求的默认设置选项。之后执行的所有AJAX请求，如果对应的选项参数没有设置，将使用更改后的默认设置。*/
    $.ajaxSetup({
        cache: !1,
        beforeSend: function (t, e) {
            if (e.context) {
                if ($(".mask-box").addClass("hidden"), 1 == e.context.data("is_submit")) return !1;
                $('<div class="mask-loading" id="ajax-loading">            <img class="loading-img" src="/static/img/loding.gif" alt="" width="128" height="128">         </div>').appendTo("body"), e.context.data("is_submit", !0)
            }
        }
    }),



    $(document).bind("ajaxComplete", function (t, e, a) {
        a.context && ($("#ajax-loading").remove(), a.context.data("is_submit", !1))
    }),
    $(document).on("ajaxSuccess", function (t, e) {
        var a = {};
        if (200 == e.status) try {
            a = JSON.parse(e.responseText)
        } catch (i) { }
        a != {} && a.code == ERRORCODE.NOT_LOGIN && (delCookie("hera_sid", DOMAIN), delCookie("user_info", DOMAIN), delCookie("audit_status", DOMAIN), require_login(!0))
    });


    /*----------------------------------------------jQuery遮罩层 end------------------------------*/

    /************************************************页面初始化start******************************************/
    var cropper;
    $(function () {
        function t() {
            $("#trace").hasClass("active") ? $(".iconfont.arrow-jiantou").removeClass("icon-qianjin1").addClass("icon-xiangxia") : $(".iconfont.arrow-jiantou").removeClass("icon-xiangxia").addClass("icon-qianjin1")
        }
        //baidu_tongji(),//百度统计
        //no_need_template(),//登录验证
        select_menu(),

        $("body").on("click", ".close-btn", function () {
            $(this).closest(".mask-box").addClass("hidden")
        }),
        $("body").on("click", ".logout-btn", function () {
            logout()
        }),
        //set_meiqia(),//webIm
        t(),
        $("#side-menu li").click(function () {
            t()
        })
    }),


    /************************************************页面初始化end******************************************/


    /*---------------------------------------------------------执行分页插件start----------------------------------------------*/
    function (t) {
        "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
    }(function (t) {
        "use strict";
        var e = function (a, i) {
            this.options = t.extend({}, e.defaults, i), this.$element = t(a), this.init()
        };
        e.pluginName = "paginator", e.dataName = "paginatorDataName", e.version = "1.0.0", e.defaults = {
            type: "GET",
            url: "",
            timeout: 5e3,
            page_num: 1,
            data: {},
            page_size: 20,
            is_finished: !1,
            request_lock: !1,
            ajax_finish_func: null,
            loading_func: null,
            beforeReset: null,
            countKey: "total",
            change_footer_func: null,
            paginator_footer_id: "#paginator_footer",
            show_range: 1
        },
        e.prototype = {
            init: function () {
                this.request_data()
            },
            loading_func: function (t) { },
            no_data_func: function (t) { },
            no_more_func: function (t) { },
            pre_page: function () {
                this.request_data(-1)
            },
            next_page: function () {
                this.request_data(1)
            },
            change_footer: function (e) {
                var a = Math.ceil(e / this.options.page_size);
                t(this.options.paginator_footer_id).html('<div class="clearfix">    <div class="btn-group pull-right paginator">    </div></div>');
                var i = "";
                i = 1 == this.options.page_num ? '<button class="btn btn-white" disabled page_to=""><i class="fa fa-chevron-left"></i></button><button class="btn btn-white active">1</button>' : '<button class="btn btn-white" page_to="' + (this.options.page_num - 1) + '"><i class="fa fa-chevron-left"></i></button><button class="btn btn-white" page_to="1">1</button>';
                for (var s = [], l = -this.options.show_range; l <= this.options.show_range; l++) {
                    var n = this.options.page_num + l;
                    n > 1 && n <= a && s.push(n)
                }
                s[0] > 2 && (i += '<button class="btn btn-white" page_to="">...</button>');
                for (var l = 0; l < s.length; l++) i += s[l] == this.options.page_num ? '<button class="btn btn-white active">' + this.options.page_num + "</button>" : '<button class="btn btn-white" page_to="' + s[l] + '">' + s[l] + "</button>";
                s[s.length - 1] < a ? (s[s.length - 1] + 1 < a && (i += '<button class="btn btn-white" page_to="">...</button>'), i += '<button class="btn btn-white" page_to="' + a + '">' + a + "</button>", i += '<button class="btn btn-white" page_to="' + (this.options.page_num + 1) + '"><i class="fa fa-chevron-right"></i></button>') : i += this.options.page_num == a ? '<button class="btn btn-white" disabled><i class="fa fa-chevron-right"></i></button>' : '<button class="btn btn-white" page_to="' + (this.options.page_num + 1) + '"><i class="fa fa-chevron-right"></i></button>', t(".paginator").html(i);
                var c = this;
                t(".paginator button").click(function () {
                    var e = t(this).attr("page_to");
                    e && c.request_data(Number(e) - c.options.page_num)
                })
            },
            request_data: function (e) {
                if (this.options.is_finished || this.options.request_lock) return !1;
                this.options.loading_func ? this.options.loading_func(1) : this.loading_func(1), null == e && (e = 0), this.options.request_lock = !0;
                var a = this.options.data;
                a.page_num = this.options.page_num + e, a.page_size ? this.options.page_size = a.page_size : a.page_size = this.options.page_size;
                var i = this;
                t.ajax({
                    url: i.options.url,
                    timeout: i.options.timeout,
                    type: i.options.type,
                    data: a,
                    crossDomain: !0,
                    xhrFields: {
                        withCredentials: !0
                    },
                    success: function (t) {
                        i.options.ajax_finish_func && i.options.ajax_finish_func(t), i.options.page_num += e;
                        var a = t[i.options.countKey];
                        i.options.change_footer ? i.options.change_footer(a) : i.change_footer(a)
                    },
                    complete: function () {
                        i.options.loading_func ? i.options.loading_func(0) : i.loading_func(0), i.options.request_lock = !1
                    }
                })
            },
            set_finished: function () {
                this.options.is_finished = !0, this.options.no_more_func ? this.options.no_more_func(1) : this.no_more_func(1)
            },
            change_data: function (t) {
                this.options.data = t, this.reset_request()
            },
            reset_request: function () {
                this.options.page_num = 1, this.options.is_finished = !1, this.$element.empty(), this.options.no_more_func ? this.options.no_more_func(0) : this.no_more_func(0), this.no_data_func(0), this.options.beforeReset && this.options.beforeReset(), this.request_data()
            }
        };
        var a = t.fn[e.pluginName];
        t.fn[e.pluginName] = function (a, i) {
            return this.each(function () {
                var s = t(this),
                    l = s.data(e.dataName),
                    n = "object" == typeof a && a;
                l || s.data(e.dataName, l = new e(this, n)), "string" == typeof a && null == i && l[a](), "string" == typeof a && i && l[a].apply(l, i)
            })
        }, t.fn[e.pluginName].Constructor = e, t.fn[e.pluginName].noConflict = function () {
            return t.fn[e.pluginName] = a, this
        }, t(document).ready(function () {
            t('[data-role="' + e.pluginName + '"]').each(function () {
                var a = t(this),
                    i = a.data();
                t.fn[e.pluginName].call(a, i)
            })
        })
    }),

    /*---------------------------------------------------------执行分页插件end----------------------------------------------*/





    /*---------------------------------------------------------html生成器start------------------------------------------------*/
    !function () {


        /*---------------------生成器基础类库start-----------------------*/
        function t(t, e) {
            return (/string|function/.test(typeof e) ? c : n)(t, e)
        }
        function e(t, a) {
            return "string" != typeof t && (a = typeof t, "number" === a ? t += "" : t = "function" === a ? e(t.call(t)) : ""), t
        }
        function a(t) {
            return p[t]
        }
        function i(t) {
            return e(t).replace(/&(?![\w#]+;)|[<>"']/g, a)
        }
        function s(t, e) {
            if (u(t)) for (var a = 0, i = t.length; a < i; a++) e.call(t, t[a], a, t);
            else for (a in t) e.call(t, t[a], a)
        }
        function l(t, e) {
            var a = /(\/)[^\/]+\1\.\.\1/,
                i = ("./" + t).replace(/[^\/]+$/, ""),
                s = i + e;
            for (s = s.replace(/\/\.\//g, "/") ; s.match(a) ;) s = s.replace(a, "/");
            return s
        }
        function n(e, a) {
            var i = t.get(e) || r({
                filename: e,
                name: "Render Error",
                message: "Template not found"
            });
            return a ? i(a) : i
        }
        function c(t, e) {
            if ("string" == typeof e) {
                var a = e;
                e = function () {
                    return new o(a)
                }
            }
            var i = d[t] = function (a) {
                try {
                    return new e(a, t) + ""
                } catch (i) {
                    return r(i)()
                }
            };
            return i.prototype = e.prototype = h, i.toString = function () {
                return e + ""
            }, i
        }
        function r(t) {
            var e = "{Template Error}",
                a = t.stack || "";
            if (a) a = a.split("\n").slice(0, 2).join("\n");
            else for (var i in t) a += "<" + i + ">\n" + t[i] + "\n\n";
            return function () {
                return "object" == typeof console && console.error(e + "\n\n" + a), e
            }
        }
        var d = t.cache = {},
            o = this.String,
            p = {
                "<": "&#60;",
                ">": "&#62;",
                '"': "&#34;",
                "'": "&#39;",
                "&": "&#38;"
            },
            u = Array.isArray ||
        function (t) {
            return "[object Array]" === {}.toString.call(t)
        }, h = t.utils = {
            $helpers: {},
            $include: function (t, e, a) {
                return t = l(a, t), n(t, e)
            },
            $string: e,
            $escape: i,
            $each: s
        }, m = t.helpers = h.$helpers;
        t.get = function (t) {
            return d[t.replace(/^\.\//, "")]
        },
        t.helper = function (t, e) {
            m[t] = e
        },
        "function" == typeof define ? define(function () {
            return t
        }) :


        "undefined" != typeof exports ? module.exports = t : this.template = t,

        /*---------------------生成器基础类库end-----------------------*/


        t.helper("qrcode_size_human", function (t) {
            switch (t) {
                case 8:
                    return "35mm*45mm";
                case 4:
                    return "30mm*40mm";
                case 2:
                    return "20mm*30mm";
                default:
                    return "-"
            }
        }),
        t.helper("hasSelectPrize", function (t) {
            return $(":input[data-prize-id='" + t + "']").length > 0
        }),
        t.helper("length", function (t) {
            return t.length
        }),
        t.helper("fen_to_yuan", function (t, e) {
            return fen_to_yuan(t, e)
        }),
        t.helper("chance_to_per", function (t) {
            return chance_to_per(t)
        }),
        t.helper("percent_display", function (t, e) {
            return percent_display(t, e)
        }),
        t("captcha-dialog", '<div class="bomb-message-mask mask-box message-code hidden" id="captcha-dialog"> <div class="bomb-wait"> <div class="bomb-title"> <span>图片验证码</span> <i id="close-btn" class="iconfont close-icon icon-icclose48px"></i> </div> <div class="bomb-bottom"> <div class="input-code-box clearfix"> <input name="captcha" id="captcha" type="text" class="pull-left bomb-code" placeholder="请输入验证码" maxlength="4"> <input name="captcha_key" id="captcha_key" type="hidden"> <div class="pull-left bomb-code-box"> <img src="/static/img/loding.gif" class="center-block" height="100%;" id="captcha-img"> </div> </div>  <p class="tips-error"></p> <button type="button" class="bomb-message-btn text-center" id="require-code-btn">确定</button> </div> </div> </div> '), t("header", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.username,
                l = t.company_status,
                n = t.brand_status,
                c = "";
            return c += '<div class="row border-bottom clearfix"> <nav class="navbar" role="navigation" style="margin-bottom: 0"> <div class="system-name pull-left"> 正宜码达正品营销系统 </div> <ul class="sign-out-bar pull-right"> <li> <a href="#"> <i class="iconfont icon-ren admin-icon"></i> ', c += i(s), c += " </a> </li> <li> ", c += 1 == l || "" == l || 15 == l ? ' <a href="/pages/account/account.html" class="ident-bar">未认证</a> ' : 10 == l && 5 == n ? ' <a href="/pages/account/account.html" class="ident-bar certified"> 已认证</a> ' : ' <a href="/pages/account/account.html" class="ident-bar certifing"> 认证中</a> ', c += ' </a> </li> <li> <a href="#" class="logout-btn"> 退出 </a> </li> </ul> </nav> </div> ', new o(c)
        }),
        t("index-warning", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.company_status),
                s = t.brand_status,
                l = "";
            return 1 == i || "" == i ? l += '  <div class="row wrapper border-bottom warning-bg container-title warning"> <div class="col-sm-8"> <h2 class="warnin-h3"> <i class="iconfont icon-zhushi"></i>您未完成企业实名及品牌认证，认证后即可使用全部功能，是否认证？ </h2> </div> <div class="col-sm-4"> <div class="title-action"> <a href="/pages/account/company-verify.html" class="btn btn-white create-product">立即认证</a> </div> </div> </div> ' : 15 == i ? l += '  <div class="row wrapper border-bottom warning-bg container-title warning"> <div class="col-sm-8"> <h2 class="warnin-h3"> <i class="iconfont icon-zhushi"></i>您的企业信息认证审核未通过，请重新提交认证审核。 </h2> </div> <div class="col-sm-4"> <div class="title-action"> <a href="/pages/account/company-verify.html" class="btn btn-white create-product">重新提交</a> </div> </div> </div> ' : (l += "  ", l += "" == s ? '  <div class="row wrapper border-bottom warning-bg container-title warning"> <div class="col-sm-8"> <h2 class="warnin-h3"> <i class="iconfont icon-zhushi"></i>未完成品牌认证，认证后即可使用全部功能，是否认证？ </h2> </div> <div class="col-sm-4"> <div class="title-action"> <a href="/pages/account/brand-verify.html" class="btn btn-white create-product">立即认证</a> </div> </div> </div> ' : 10 == s ? ' <div class="row wrapper border-bottom warning-bg container-title warning"> <div class="col-sm-8"> <h2 class="warnin-h3"> <i class="iconfont icon-zhushi"></i>您的品牌认证审核未通过，请重新提交认证审核。 </h2> </div> <div class="col-sm-4"> <div class="title-action"> <a href="/pages/account/brand-verify.html" class="btn btn-white create-product">重新提交</a> </div> </div> </div> ' : ' <div class="row wrapper border-bottom white-bg container-title"> <p class="pro-list-h3">概述</p> </div> ', l += " "), l += " ", new o(l)
        }),
        t("nav", '<ul class="nav metismenu"> <li class="logo-bar"> <div class="logo-box"> <img src="/static/img/logo.png" width="100%" height="100%"> </div> </li> </ul> <nav class="navbar-default navbar-static-side left-bar full-height-scroll" role="navigation"> <div class="sidebar-collapse"> <ul class="nav metismenu navbar-con" id="side-menu"> <li id="sketch"> <a href="/pages/index.html"><i class="iconfont icon-chanpinguanli"></i> <span class="nav-label">概览</span></a> </li> <hr class="nav-line"/> <li id="management"> <a href="/pages/product/product-list.html"><i class="iconfont icon-iconfontchanpin pull-left"></i> <span class="nav-label">商品管理</span></a> </li> <li id="qr-code"> <a href="/pages/codes/code-order-list.html"><i class="iconfont icon-erweima pull-left"></i> <span class="nav-label">二维码订单</span> </a> </li> <li id="trace"> <a href="javascript:;" class="trace-first"><i class="iconfont icon-chanpinsuyuan"></i> <span class="nav-label">溯源管理</span> <span class="iconfont icon-qianjin1 arrow-jiantou pull-right"></span> </a> <ul class="nav nav-second-level collapse"> <li id="static"><a href="/pages/trace/static/list.html" class="">静态溯源</a></li> <li id="dynamic"><a href="/pages/trace/track/list.html">动态溯源</a></li> </ul> </li> <li id="company-info"> <a href="/pages/company-info/list.html"><i class="iconfont icon-company-info"></i> <span class="nav-label">企业信息</span> </a> </li> <li id="product-recommend"> <a href="/pages/product-recommend/list.html"><i class="iconfont icon-icon"></i> <span class="nav-label">商品推荐</span> </a> </li> <li id="activity"> <a href="/pages/activity/list.html"><i class="iconfont icon-zuanshi pull-left"></i> <span class="nav-label">活动中心</span> </a> </li> <li id="prize"> <a href="/pages/prizes/virtual-prize-list.html"><i class="iconfont icon-jiangpinguanli"></i> <span class="nav-label">奖品池</span> </a> </li> <li id="red-bag"> <a href="/pages/red-bag/balance.html"><i class="iconfont icon-hongbao-copy"></i> <span class="nav-label">微信红包</span> </a> </li> <li id="data-center"> <a href="/pages/data-center/overview.html"><i class="iconfont icon-shujufenxi"></i> <span class="nav-label">数据中心</span></a> </li> <li id="early"> <a href="/pages/alarm/list.html"><i class="iconfont icon-jinggao"></i> <span class="nav-label">预警中心</span></a> </li> <li id="scan-history"> <a href="/pages/scan-history.html"><i class="iconfont icon-combinedshape"></i> <span class="nav-label">扫码记录</span></a> </li> <hr class="nav-line"/> <li id="account"> <a href="/pages/account/account.html"><i class="iconfont icon-guanli pull-left"></i> <span class="nav-label">账户管理</span> </a> </li> <li id="bill"> <a href="javascript:;" class="trace-first clearfix"> <i class="iconfont icon-fapiao01 pull-left"></i> <span class="nav-label">发票管理</span> <span class="iconfont icon-qianjin1 arrow-jiantou pull-right"></span> </a> <ul class="nav nav-second-level collapse clearfix"> <li id="bill-list"><a href="/pages/bill/list.html" class="">普通发票</a></li> <li id="bill-message"><a href="/pages/bill/add.html">发票信息</a></li> </ul> </li> <li id="address"> <a href="/pages/address/address-list.html"><i class="iconfont icon-dizhi pull-left"></i> <span class="nav-label">收货地址</span> </a> </li>    <li id="weixin-settings"> <a href="/pages/weixin-settings.html"><i class="iconfont icon-iconfont8 pull-left"></i> <span class="nav-label">公众号设置</span> </a> </li> </ul> </div> </nav> '), t("scan-history", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.records,
                l = (t.value, t.i, a.$escape),
                n = "";
            return i(s, function (t, e) {
                n += ' <tr> <td class="text-center">', n += l(e + 1), n += '</td> <td class=""> <a class="product" href="/pages/product/product-detail.html?product_id=', n += l(t.product_id), n += '">', n += l(t.product_name), n += '</a> <p class="product-size">规格：', n += l(t.specification), n += "</p> </td> <td>", n += l(t.product_code), n += "</td> <td>", "phone" === t.user_id_type && (n += '<i class="iconfont icon-shouji"></i>'), n += l(t.user_id), n += "</td>  <td>", n += t.is_verify ? '<i class="iconfont icon-gou1 QRcode-is-check"></i>' : "－－", n += "</td> <td>", n += l(t.province), n += "－", n += l(t.city), n += "</td> <td>", n += l(t.created_time), n += "</td> </tr> "
            }), n += " ", new o(n)
        }),
        t("account/brands", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.brands),
                s = a.$each,
                l = (t.value, t.i, a.$escape),
                n = "";
            return n += '<p class="clearfix input-title account-title" id="brand-title"> <span class="pull-left title-input-in">品牌管理&nbsp;&nbsp;&nbsp;</span> ', i.length > 0 && (n += ' <a href="/pages/account/brand-verify.html" class="change-something">认证新品牌</a> '), n += " </p> ", 0 == i.length ? n += ' <p class="under-instruction"> 未认证，认证后将自动显示品牌名称 <a href="/pages/account/brand-verify.html" class="check-info special-top" id="company-verify">马上认证</a> </p> ' : (n += " ", s(i, function (t, e) {
                n += ' <p class="under-instruction"> ', 10 == t.status ? n += " 认证未通过 " : (n += " ", n += l(t.name), n += " "), n += " ", 1 == t.status ? (n += ' <a href="/pages/account/brand-verify.html?bid=', n += l(t.bid), n += '&status=1" class="check-info special-top">审核中</a> ') : 5 == t.status ? (n += ' <a href="/pages/account/brand-verify.html?bid=', n += l(t.bid), n += '&status=5" class="check-info special-top">查看</a> ') : 10 == t.status && (n += ' <a href="/pages/account/brand-verify.html?bid=', n += l(t.bid), n += '&status=10" class="check-info special-top"> 重新提交 </a> '), n += " </p> "
            }), n += " "), n += " ", new o(n)
        }),
        t("account/company_name", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.company),
                s = a.$escape,
                l = "";
            return l += '<p class="clearfix input-title"> <span class="pull-left title-input-in">公司名称</span> </p> ', 1 == i.status ? l += '  <p class="under-instruction"> 未认证，认证后将自动显示公司名称 <a href="/pages/account/company-verify.html" class="check-info special-top">马上认证</a> </p> ' : 5 == i.status ? (l += '  <p class="under-instruction"> ', l += s(i.name), l += ' <a href="/pages/account/company-verify.html" class="check-info special-top">审核中</a> </p> ') : 10 == i.status ? (l += '  <p class="under-instruction"> ', l += s(i.name), l += ' <a href="/pages/account/company-verify.html" class="check-info special-top">查看</a> </p> ') : 15 == i.status && (l += '  <p class="under-instruction"> 认证未通过 <a href="/pages/account/company-verify.html" class="check-info special-top">重新提交</a> </p> '), l += " ", new o(l)
        }),
        t("account/weixin_ak_m", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.company),
                s = a.$escape,
                l = "";
            return l += '<p class="clearfix input-title account-title"> <span class="pull-left title-input-in">公众号扫码链接</span> </p> <p class="under-instruction"> ', i.weixin_ak_m ? (l += " ", l += s(i.weixin_ak_m), l += " ") : l += " 认证完成后将自动显示公众号所需链接 ", l += ' <a href="/pages/weixin-settings.html" class="check-info special-top">查看设置教程</a> </p> ', new o(l)
        }),
        t("activity/activity_list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.projects,
                l = (t.value, t.i, a.$escape),
                n = t.activity_length,
                c = "";
            return c += '<table class="table table-bordered table-hover product-list-table activity-list-bar" id="editable" > <thead> <tr> <th class="th-first">活动名称</th> <th class="th-second">活动类型</th> <th class="th-third">活动状态</th> <th class="th-fourth">创建时间</th> <th class="th-fifth">操作</th> </tr> </thead> <tbody class="" id="activity_list_id"> ', i(s, function (t, e) {
                c += ' <tr> <td class="td-first"><a href="/pages/activity/detail.html?project_id=', c += l(t.id), c += '" class="modify pro-name">', c += l(t.name), c += "</a></td> <td> ", 1 == t.kind ? c += " 刮刮乐 " : 2 == t.kind ? c += " 微信红包 " : 3 == t.kind && (c += " 幸运大转盘 "), c += " </td> <td>", c += l(t.status_display), c += '</td> <td class="center">', c += l(t.created_time), c += '</td> <td class="center"> ', 10 == t.status || 20 == t.status ? (c += " ", 1 == t.kind ? (c += ' <a href="/pages/activity/create-second.html?edit=1&project_id=', c += l(t.id), c += '" class="modify">修改</a> ') : 2 == t.kind ? (c += ' <a href="/pages/activity/red-bag/create.html?edit=1&project_id=', c += l(t.id), c += '" class="modify">修改</a> ') : 3 == t.kind && (c += ' <a href="/pages/activity/rotate/create-first.html?edit=1&project_id=', c += l(t.id), c += '" class="modify">修改</a> '), c += " ") : 30 == t.status && (c += ' <a href="javascript:;" class="modify invalid unclick">修改</a> '), c += " ", 20 == t.status || 30 == t.status ? c += ' <a href="javascript:;" class="invalid modify unclick">删除</a> ' : 10 == t.status && (c += ' <a href="javascript:;" data-id="', c += l(t.id), c += '" class="delete modify">删除</a> '), c += " </td> </tr> "
            }), c += " </tbody> </table> ", 0 == n && (c += ' <div class="empty no-activity"> <div class="no-activity-icon empty-icon iconfont icon-wutuijian"></div> <p class="empty-text">无营销活动，<a href="/pages/activity/create-first.html" class="create-link">创建活动</a></p> </div> '), c += " ", new o(c)
        }),
        t("activity/detail", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.data,
                n = t.project_id,
                c = a.$each,
                r = (t.value, t.index, t.i, i.fen_to_yuan),
                d = t.left_rate,
                p = "";
            return p += '<div class="row wrapper border-bottom white-bg container-title"> <div class="col-sm-4 n-p"> <h2 class="pro-list-h3">活动详情／<span class="special-color">', p += s(l.name), p += '</span></h2> </div> </div>  <p class="activity-create-time animated fadeInRight">创建时间：', p += s(l.created_time), p += "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;状态：", p += s(l.status_display), p += '</p>  <div class="wrapper wrapper-content animated fadeInRight padding-special clearfix"> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content n-p">  <div class="row"> <div class="col-lg-12"> <div class="tabs-container"> <ul class="nav nav-tabs activity-history"> <li class="active"> <a class="activity-url" href="/pages/activity/detail.html?project_id=', p += s(n), p += "&start_time=", p += s(l.start_time), p += "&end_time=", p += s(l.end_time), p += "&name=", p += s(l.name), p += "&created_time=", p += s(l.created_time), p += "&status=", p += s(l.status_display), p += '">活动详情</a> </li> <li> <a class="activity-url" href="/pages/activity/win-history.html?project_id=', p += s(n), p += "&start_time=", p += s(l.start_time), p += "&end_time=", p += s(l.end_time), p += "&name=", p += s(l.name), p += "&created_time=", p += s(l.created_time), p += "&status=", p += s(l.status_display), p += '">奖品处理日志</a> </li> <li class=""> <a class="activity-url" href="/pages/activity/data-count.html?project_id=', p += s(n), p += "&start_time=", p += s(l.start_time), p += "&end_time=", p += s(l.end_time), p += "&name=", p += s(l.name), p += "&created_time=", p += s(l.created_time), p += "&status=", p += s(l.status_display), p += '">数据统计</a> </li> </ul>  <div class="activity-con-bar panel-body prize-content"> <h3 class="h3-title">活动信息</h3> <dl class="activity-detail-dl"> <dt>活动名称</dt> <dd>', p += s(l.name), p += "</dd> <dt>活动有效期</dt> <dd>", p += s(l.start_time), p += '<span class="validity-time">至</span>', p += s(l.end_time), p += "</dd> <dt>关联商品</dt> <dd> ", c(l.related_products, function (t, e) {
                p += " ", p += s(t.name), p += " ", l.related_products.length != e + 1 && (p += " | "), p += " "
            }), p += ' </dd> </dl> <h3 class="h3-title">奖品信息</h3> <div class="activity-prizes-bar"> <table class="table table-bordered create-activity"> <thead> <tr class="title prizes-list"> <td class="prizes-name">奖品名称</td> <td class="prizes-img">图片</td> <td class="prizes-mount">奖品数量</td> <td class="prizes-left">奖品剩余</td> <td class="prizes-price">价值（元）</td> <td class="prizes-chance">概率</td> </tr> </thead> <tbody> ', c(l.prize_conf, function (t, e) {
                p += " <tr> <td>", p += 3 == t.prize_kind ? "微信红包" : s(t.name), p += "</td> <td> ", 3 == t.prize_kind ? p += ' <div class="prizes-img-content" style="background-image: url(/static/img/activity/redbag.png)"></div> ' : (p += ' <div class="prizes-img-content" style="background-image: url(', p += s(t.prize_img), p += ')"></div> '), p += " </td> <td>", p += s(t.amount), p += "</td> <td>", p += s(t.left_amount), p += "</td> <td> ", 3 == t.prize_kind ? (p += " ", p += s(r(t.redbag_price, 2)), p += " ") : (p += " ", p += s(r(t.prize_price, 2)), p += " "), p += " </td> <td>", p += s(i.chance_to_per(t.rate)), p += "%</td> </tr> "
            }), p += " <tr> <td>谢谢参与</td> <td>--</td> <td>--</td> <td>--</td> <td>--</td> <td>", p += s(d), p += "%</td> </tr> </tbody> </table> </div> </div>  </div> </div> </div> </div> </div> </div> </div> </div> ", new o(p)
        }),
        t("activity/modify_prize_confing", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.prize_conf,
                n = (t.value, t.i, a.$escape),
                c = i.fen_to_yuan,
                r = i.chance_to_per,
                d = "";
            return d += '<table class="table table-bordered create-activity"> <thead> <tr class="title prizes-list"> <td class="all-prizes-name">奖品名称</td> <td class="all-prizes-img">图片</td> <td class="all-prizes-price">价值（元）</td> <td class="all-prizes-mount">奖品总数</td> <td class="all-prizes-left-mount">奖品剩余</td> <td class="all-prizes-chance modify">概率</td> <td class="all-prizes-delete modify">操作</td> </tr> </thead> <tbody id="create-activity-tbody"> <tr> <td>谢谢参与</td> <td>- -</td> <td>- -</td> <td>- -</td> <td>- -</td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-input-in" type="text" value="100" name="chance_thanks" readonly> <span class="pull-left unit">%</span> </div> </td> <td>- -</td> </tr> ', s(l, function (t, e) {
                d += " ", 3 == t.prize_kind ? (d += ' <tr class="new-add-prizes edit-prizes-redbag"> <td>微信红包</td> <td> <div class="prizes-img-content" style="background-image: url(/static/img/activity/redbag.png);"></div> </td> <td>', d += n(c(t.redbag_price, 2)), d += ' <div class="chance-amount clearfix hidden"> <input class="form-control pull-left chance-redbag-in" type="text" value="', d += n(c(t.redbag_price, 2)), d += '" name="price" > </div> </td> <td> <div class="chance-amount clearfix"> <input type="hidden" value="', d += n(t.id), d += '" name="id"> <input class="form-control pull-left chance-amount-in" type="text" value="', d += n(t.amount), d += '" name="amount" prize-amount="', d += n(t.amount), d += '" prize-amount-keyup="', d += n(t.amount), d += '"> </div> </td> <td> <div class="clearfix"> <input class="form-control pull-left chance-left-amount-in" type="text" value="', d += n(t.left_amount), d += '" name="amount" readonly> </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-input-in" type="text" value="', d += n(r(t.rate)), d += '" name="rate"> <span class="pull-left unit">%</span> </div> </td> <td class="delete-color"></td> </tr> ') : (d += ' <tr class="new-add-prizes edit-prizes-real"> <td>', d += n(t.name), d += '</td> <td> <div class="prizes-img-content" style="background-image: url(\'', d += n(t.prize_img), d += "');\"></div> </td> <td>", d += n(c(t.prize_price, 2)), d += '</td> <td> <div class="chance-amount clearfix"> <input type="hidden" value="', d += n(t.id), d += '" name="id" data-prize-id="', d += n(t.prize_id), d += '" > <input class="form-control pull-left chance-amount-in" type="text" value="', d += n(t.amount), d += '" name="amount" prize-amount="', d += n(t.amount), d += '" prize-amount-keyup="', d += n(t.amount), d += '" prize-left-amount="', d += n(t.prize_left_amount), d += '"> </div> </td> <td> <div class="clearfix"> <input class="form-control pull-left chance-left-amount-in" type="text" value="', d += n(t.left_amount), d += '" name="amount" readonly> </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-input-in" type="text" value="', d += n(r(t.rate)), d += '" name="rate"> <span class="pull-left unit">%</span> </div> </td> <td class="delete-color"></td> </tr> '), d += " "
            }), d += " </tbody> </table> ", new o(d)
        }),
        t("activity/modify_prize_confing_phone", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.prize_conf,
                n = (t.value, t.i, a.$escape),
                c = i.fen_to_yuan,
                r = "";
            return s(l, function (t, e) {
                r += " ", 3 == t.prize_kind ? (r += ' <li class="prizes-show-list clearfix"> <div class="pull-left prizes-img" style="background-image: url(/static/img/activity/redbag.png);"></div> <div class="prizes-detail pull-left"> <p class="prizes-title">微信红包</p> <span class="prizes-price prizes-redbag-price">价值', r += n(c(t.redbag_price, 2)), r += "元</span> </div> </li> ") : (r += ' <li class="prizes-show-list clearfix"> <div class="pull-left prizes-img" style="background-image: url(', r += n(t.prize_img), r += ');"></div> <div class="prizes-detail pull-left"> <p class="prizes-title">', r += n(t.name), r += '</p> <span class="prizes-price">价值', r += n(c(t.prize_price, 2)), r += "元</span> </div> </li> "), r += " "
            }), r += " ", new o(r)
        }),
        t("activity/prize_confing", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.kind),
                s = a.$escape,
                l = t.name,
                n = t.prize_img,
                c = t.prize_price,
                r = t.id,
                d = t.prize_id,
                p = t.amount,
                u = "";
            return 1 == i || 2 == i ? (u += ' <tr class="new-add-prizes new-add-prizes-real"> <td>', u += s(l), u += '</td> <td> <div class="prizes-img-content" style="background-image: url(\'', u += s(n), u += "');\"></div> </td> <td>", u += s(c), u += '</td> <td > <div class="chance-amount clearfix"> <input type="hidden" value="', u += s(r), u += '" name="id" data-prize-id="', u += s(d), u += '"> <input class="form-control pull-left chance-amount-in" type="text" value="" name="amount" data-left-amount="', u += s(p), u += '"> </div> </td> <td> <div class="clearfix"> <input class="form-control pull-left chance-left-amount-in" type="text" value="" name="amount" readonly> </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-input-in" type="text" value="0" name="rate"> <span class="pull-left unit">%</span> </div> </td> <td class="delete-color"><a href="javascript:;" class="delete-prizes">删除</a></td> </tr> ') : u += ' <tr class="new-add-prizes new-add-prizes-redbag"> <td>微信红包</td> <td> <div class="prizes-img-content" style="background-image: url(/static/img/activity/redbag.png);"></div> </td> <td > <div class="chance-amount clearfix"> <input class="form-control pull-left chance-redbag-in" type="text" value="" name="price" > </div> </td> <td > <div class="chance-amount clearfix"> <input class="form-control pull-left chance-amount-in" type="text" value="" name="amount" > </div> </td> <td> <div class="clearfix"> <input class="form-control pull-left chance-left-amount-in" type="text" value="" name="amount" readonly> </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-input-in" type="text" value="0" name="rate"> <span class="pull-left unit">%</span> </div> </td> <td class="delete-color"><a href="javascript:;" class="delete-prizes">删除</a></td> </tr> ', u += " ", new o(u)
        }),
        t("activity/prize_confing_phone", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.kind),
                s = a.$escape,
                l = t.prize_img,
                n = t.name,
                c = t.prize_price,
                r = "";
            return 1 == i || 2 == i ? (r += ' <li class="prizes-show-list clearfix"> <div class="pull-left prizes-img" style="background-image: url(', r += s(l), r += ');"></div> <div class="prizes-detail pull-left"> <p class="prizes-title">', r += s(n), r += '</p> <span class="prizes-price">价值', r += s(c), r += "元</span> </div> </li> ") : r += ' <li class="prizes-show-list clearfix"> <div class="pull-left prizes-img" style="background-image: url(/static/img/activity/redbag.png);"></div> <div class="prizes-detail pull-left"> <p class="prizes-title">微信红包</p> <span class="prizes-price prizes-redbag-price">价值</span> </div> </li> ', r += " ", new o(r)
        }),
        t("activity/prize_list", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.prizes,
                l = a.$each,
                n = (t.value, t.i, t.end_time),
                c = a.$escape,
                r = i.fen_to_yuan,
                d = i.hasSelectPrize,
                p = "";
            return p += '<div class="mask-box" > <div class="mask-content-prizes"> <div class="top-create-btn clearfix"> <a href="/pages/prizes/create-coupon.html" class="btn btn-primary pull-left create-prizes-activity">创建奖品</a> <span class="close-btn"></span> </div> <div class="add-prizes-mask"> <table class="table table-bordered create-activity"> <thead> <tr class="title"> <td class="mask-prizes-name">奖品名称</td> <td class="mask-prizes-type">类型</td> <td class="mask-prizes-date">有效期</td> <td class="mask-prizes-total">可用／总数</td> <td class="mask-prizes-handle">操作</td> </tr> </thead> <tbody> <tr> <td class="prizes-names">微信红包</td> <td>微信红包</td> <td>--</td> <td>--</td> <td class="pack-color"> <a href="javascript:;" class="pack-prizes">选取</a> </td> </tr> ', s.length > 0 && (p += " ", l(s, function (t, e) {
                p += " <tr ", n > t.end_time && (p += ' style="color: #ccc;"'), p += '> <td class="prizes-names">', p += c(t.name), p += "</td> <td> ", p += 1 == t.kind ? " 实物 " : " 优惠券 ", p += " </td> <td>", p += c(t.start_time), p += "<br/> ", p += c(t.end_time), p += "</td> <td>", p += c(t.amount - t.used_amount), p += "/", p += c(t.amount), p += '</td> <td class="hidden prizes-kind">', p += c(t.kind), p += '</td> <td class="hidden prizes-img-url">', p += c(t.img), p += '</td> <td class="hidden prizes-id">', p += c(t.id), p += '</td> <td class="hidden prizes-price">', p += c(r(t.price, 2)), p += '</td> <td class="hidden prizes-left-amount">', p += c(t.amount - t.used_amount), p += '</td> <td class="pack-color"> ', n <= t.end_time ? (p += " ", p += d(t.id) ? " 已选取 " : ' <a href="javascript:;" class="pack-prizes">选取</a> ', p += " ") : p += " 有效期不在活动时间范围内 ", p += " </td> </tr> "
            }), p += " </tbody> "), p += " </table> </div> </div> </div> ", new o(p)
        }),
        t("activity/prize_record", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.record_list,
                n = (t.value, t.$index, a.$escape),
                c = i.fen_to_yuan,
                r = t.record_list_length,
                d = "";
            return d += '<table class="table table-bordered table-hover activity-history"> <thead> <tr> <th class="user-order">获奖单号</th> <th class="user-name">用户</th> <th class="prizes-name">奖品名称</th> <th class="prizes-type">奖品类型</th> <th class="prizes-value">价值</th> <th class="prizes-time">获奖时间</th> <th class="prizes-state">奖品状态</th> <th class="handle">操作</th> </tr> </thead> <tbody class=""> ', s(l, function (t, e) {
                d += ' <tr> <td class="">', d += n(t.order_id), d += '</td> <td class="">', d += n(t.user_name), d += '</td> <td class="">', d += n(t.prize_name), d += "</td> <td>", d += n(t.kind_display), d += "</td> ", 3 == t.kind ? (d += ' <td class="">', d += n(c(t.redbag_price, 2)), d += "</td> ") : (d += ' <td class="">', d += n(c(t.price, 2)), d += "</td> "), d += ' <td class="">', d += n(t.created_time), d += '</td> <td class="">', d += n(t.status_display), d += '</td> <td class=""> <a href="javascript:;" class="modify">详情</a> <input type="hidden" name_zh="奖品名称" value="', d += n(t.prize_name), d += '" /> ', 2 == t.kind ? (d += ' <input type="hidden" name_zh="中奖券码" value="', d += n(t.coupon), d += '" /> ') : (d += ' <input type="hidden" name_zh="收货人" value="', d += n(t.receiver), d += '" /> <input type="hidden" name_zh="联系电话" value="', d += n(t.receiver_mobile), d += '" /> <input type="hidden" name_zh="联系地址" value="', d += n(t.address), d += '" /> <input type="hidden" name_zh="快递公司" value="', d += n(t.company), d += '" /> <input type="hidden" name_zh="快递单号" value="', d += n(t.express_id), d += '" /> <input type="hidden" name_zh="发货时间" value="', d += n(t.express_time), d += '" /> '), d += " ", t.send && (d += ' <a href="javascript:;" class="delivery-btn has-handle" data-id="', d += n(t.order_id), d += '" data-prize-name="', d += n(t.prize_name), d += '" data-receiver="', d += n(t.receiver), d += '" data-receiver-mobile="', d += n(t.receiver_mobile), d += '" data-address="', d += n(t.address), d += '">发货</a> '), d += " </td> </tr> "
            }), d += " </tbody> </table> ", 0 == r && (d += ' <div class="empty"> <div class="iconfont icon-chanpinsuyuan empty-icon"></div> <p class="empty-text">暂无数据</p> </div> '), d += " ", new o(d)
        }),
        t("activity/product_list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.products,
                l = (t.value, t.i, a.$escape),
                n = t.is_edit,
                c = "";
            return c += '<a href="/pages/product/create-product.html" class="create-pro">新建商品</a> <select class="form-control form-control-sec selectpicker" name="product_id" multiple title="请选择关联商品"> ', i(s, function (t, e) {
                c += ' <option value="', c += l(t.product_id), c += '" ', n && (c += 'selected="selected"'), c += ">", c += l(t.name), c += "</option> "
            }), c += " </select> ", new o(c)
        }),
        t("activity/project_prize", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.prize_conf,
                n = (t.value, t.i, a.$escape),
                c = i.chance_to_per,
                r = "";
            return r += '<table class="table table-bordered activity-data table-hover text-center"><thead> <tr> <th class="text-center">奖品名称</th> <th class="text-center">数量</th> <th class="text-center">概率</th> <th class="text-center">活动未使用数量</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                r += ' <tr> <td class="">', r += n(t.name), r += '</td> <td class="">', r += n(t.amount), r += "</td> <td>", r += n(c(t.rate)), r += '%</td> <td class="">', r += n(t.left_amount), r += "</td> </tr> "
            }), r += " </tbody> </table> ", new o(r)
        }),
        t("activity/redbag-add", '<tr class="amount-add"> <td>微信红包</td> <td> <div class="chance-redbag chance-input creat-redbag clearfix"> <input class="form-control pull-left money-in" type="text" required="required" > </div> </td> <td> <div class="chance-redbag chance-input creat-redbag clearfix"> <input class="form-control pull-left amount-in" type="text" required="required" > </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-in" type="text" required="required"> <span class="pull-left unit">%</span> </div> </td> <td class="delete-color"><a href="javascript:;" class="delete-prizes">删除</a></td> </tr> '), t("activity/statis_summery", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.times,
                l = t.used_times,
                n = t.win_times,
                c = t.pick_times,
                r = "";
            return r += '<ul class="activity-user-mount clearfix"> <li class="mount-list text-center pull-left"> <p class="top-num">', r += i(s), r += '</p> 抽奖机会 </li> <li class="mount-list text-center pull-left"> <p class="top-num">', r += i(l), r += '</p> 参与次数 </li> <li class="mount-list text-center pull-left"> <p class="top-num">', r += i(n), r += '</p> 中奖次数 </li> <li class="mount-list text-center pull-left"> <p class="top-num">', r += i(c), r += "</p> 领奖次数 </li> </ul> ", new o(r)
        }),
        t("address/list_item", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.addresses,
                l = (t.value, t.i, a.$escape),
                n = "";
            return i(s, function (t, e) {
                n += ' <li class="address-list center-block"> <p class="recipient-address"> ', n += l(t.username), n += "，", n += l(t.region), n += " ", t.is_default && (n += ' &nbsp;&nbsp;&nbsp;&nbsp;<span class="first-use-address">默认地址</span> '), n += ' <span data-bid="', n += l(t.bid), n += '" class="delete-address pull-right"> <i class="iconfont icon-icclose48px"></i> </span> </p> <p class="recipient-people"><span class="list-title text-right">收货人：</span>', n += l(t.username), n += '</p> <p class="recipient-people"><span class="list-title text-right">所在地区：</span>', n += l(t.region), n += '</p> <p class="recipient-people"><span class="list-title text-right">详细地址：</span>', n += l(t.address), n += '</p> <p class="recipient-people"> <span class="list-title text-right">手机：</span>', n += l(t.mobile), n += ' <a class="blue-text change-address pull-right" href="javascript:;" data-bid="', n += l(t.bid), n += '" data-username="', n += l(t.username), n += '" data-adcode="', n += l(t.adcode), n += '" data-address="', n += l(t.address), n += '" data-mobile="', n += l(t.mobile), n += '" > 修改 </a> ', t.is_default || (n += ' <a class="blue-text pull-right set-default-address" href="javascript:;" data-bid="', n += l(t.bid), n += '" data-username="', n += l(t.username), n += '" data-adcode="', n += l(t.adcode), n += '" data-address="', n += l(t.address), n += '" data-mobile="', n += l(t.mobile), n += '" > 设为默认地址 </a> '), n += " </p> </li> "
            }), n += " ", new o(n)
        }),
        t("address/no_item", '<div class="text-center"><i class="iconfont icon-wushouhuodizhi"></i></div> <p class="no-address-text text-center">无收货信息，<span class="add-address" id="no-add-address">新增收货地址</span></p> '), t("alarm/alert-code-area-table-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.adcode),
                s = a.$each,
                l = t.region_list,
                n = (t.value, t.i, a.$escape),
                c = "";
            return i ? (c += ' <table class="table area-pro-qr table-bordered table-hover product-list-table datatable-me" id="qr-pro-area-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">市/区</th> <th class="alerm-data-detail-th-third">可疑扫码次数</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.area), c += "</td> <td>", c += n(t.record_count), c += "</td> </tr> "
            }), c += " </tbody> </table> ") : (c += ' <table class="table area-pro table-bordered table-hover product-list-table datatable-me" id="qr-china-area-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">省/直辖市</th> <th class="alerm-data-detail-th-third">可疑扫码次数</th> <th class="alerm-data-detail-th-fourth">扫码详情</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.area), c += "</td> <td>", c += n(t.record_count), c += '</td> <td><a href="" data-value="', c += n(t.adcode), c += '" data-pro="', c += n(t.area), c += '" class="selected-detail-btn">查看</a></td> </tr> '
            }), c += " </tbody> </table> "), c += " ", new o(c)
        }),
        t("alarm/alert-code-preview-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.adcode_name,
                l = t.product_code,
                n = t.product_name,
                c = t.specification,
                r = t.times,
                d = t.first_warn_time,
                p = t.last_update,
                u = "";
            return u += '<table class="table only-marge-22 table-bordered product-list-table" > <thead> <tr> <th class="alerm-brief-th-first">二维码</th> <th class="alerm-brief-th-second">商品信息</th> <th class="alerm-brief-th-third">可疑扫描次数（', u += i(s), u += '）</th> <th class="alerm-brief-th-fourth">初次预警时间</th> <th class="alerm-brief-th-fifth">最新预警时间</th> </tr> </thead> <tbody> <tr> <td>', u += i(l), u += "</td> <td> <div> ", u += i(n), u += ' </div> <div class="light-gray-font"> 规格：', u += i(c), u += " </div> </td> <td>", u += i(r), u += "</td> <td>", u += i(d), u += "</td> <td>", u += i(p), u += "</td> </tr> </tbody> </table> ", new o(u)
        }),
        t("alarm/alert-code-record-table-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.record_list,
                l = (t.value, t.i, a.$escape),
                n = "";
            return n += '<table class="table area-pro table-bordered table-hover product-list-table datatable-me" id="qr-pro-code-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">用户</th> <th class="alerm-data-detail-th-third">扫码位置</th> <th class="alerm-data-detail-th-fourth">扫码时间</th> </tr> </thead> <tbody> ', i(s, function (t, e) {
                n += " <tr> <td>", n += l(e + 1), n += "</td> <td>", n += l(t.user_id), n += "</td> <td>", n += l(t.address), n += "</td> <td>", n += l(t.created_time), n += "</td> </tr> "
            }), n += " </tbody> </table> ", new o(n)
        }),
        t("alarm/alert-list-table-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.warn_list),
                s = t.ele,
                l = a.$each,
                n = (t.value, t.i, a.$escape),
                c = "";
            return c += '<table class="datatable-me table-bordered table-hover table table-stripped toggle-arrow-tiny display table_id_example ', 0 === i.length && (c += "empty-table"), c += '" id="', "zuixin" == s ? c += "table_id_example-zuixin" : "zhongdian" == s ? c += "table_id_example-zhongdian" : "buzaiyujing" == s && (c += "table_id_example-buzaiyujing"), c += '"> <thead> <tr> <th class="alarm-first-th"></th> <th class="alarm-second-th">商品信息</th> <th class="alarm-third-th">可疑扫码次数</th> <th class="alarm-fourth-th">最新预警时间</th> <th class="alarm-fifth-th">操作</th> </tr> </thead> <tbody> ', l(i, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += '</td> <td> <div> <a class="alarm-title-a" href="/pages/alarm/product-area-detail.html?product_id=', c += n(t.product_id), c += "&product_name=", c += n(t.product_name), c += "&specification=", c += n(t.specification), c += "&sumtimes=", c += n(t.sumtimes), c += "&last_update=", c += n(t.last_update), c += "&first_warn_time=", c += n(t.first_warn_time), c += '">', c += n(t.product_name), c += '</a> </div> <div class="light-gray-font">规格：', c += n(t.specification), c += "</div> </td> <td>", c += n(t.sumtimes), c += "</td> <td>", c += n(t.last_update), c += '</td> <td class="alarm-operation"> <span><a class="" href="/pages/alarm/product-area-detail.html?product_id=', c += n(t.product_id), c += "&product_name=", c += n(t.product_name), c += "&specification=", c += n(t.specification), c += "&sumtimes=", c += n(t.sumtimes), c += "&last_update=", c += n(t.last_update), c += "&first_warn_time=", c += n(t.first_warn_time), c += '">详情</a></span> ', 1 == t.status ? (c += ' <span><a href="javascript:void(0)" class="action-btn" data-action="3" data-value="', c += n(t.product_id), c += '">重点关注</a></span> <span><a href="javascript:void(0)" class="action-btn" data-action="2" data-value="', c += n(t.product_id), c += '">再次预警</a></span> ') : 2 == t.status ? (c += ' <span><a href="javascript:void(0)" class="action-btn" data-action="3" data-value="', c += n(t.product_id), c += '">重点关注</a></span> <span><a href="javascript:void(0)" class="action-btn" data-action="1" data-value="', c += n(t.product_id), c += '">不再预警</a></span> ') : 3 == t.status && (c += ' <span><a href="javascript:void(0)" class="action-btn" data-action="2" data-value="', c += n(t.product_id), c += '">取消关注</a></span> <span><a href="javascript:void(0)" class="action-btn" data-action="1" data-value="', c += n(t.product_id), c += '">不再预警</a></span> '), c += " </td> </tr> "
            }), c += " </tbody> </table> ", new o(c)
        }),
        t("alarm/alert-product-area-table-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.adcode),
                s = a.$each,
                l = t.region_code_list,
                n = (t.value, t.i, a.$escape),
                c = "";
            return i ? (c += ' <table class="table area-pro table-bordered table-hover product-list-table datatable-me" id="pro-area-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">市/区</th> <th class="alerm-data-detail-th-third">可疑二维码数</th> <th class="alerm-data-detail-th-fourth">可疑扫码次数</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.area), c += "</td> <td>", c += n(t.warn_code_count), c += "</td> <td>", c += n(t.warn_record_count), c += "</td> </tr> "
            }), c += " </tbody> </table> ") : (c += ' <table class="table table-bordered table-hover product-list-table datatable-me" id="china-area-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">省/市</th> <th class="alerm-data-detail-th-third">可疑二维码数</th> <th class="alerm-data-detail-th-fourth">可疑扫码次数</th> <th class="alerm-data-detail-th-fifth">扫码详情</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.area), c += "</td> <td>", c += n(t.warn_code_count), c += "</td> <td>", c += n(t.warn_record_count), c += '</td> <td><a href="" data-value="', c += n(t.adcode), c += '" data-pro="', c += n(t.area), c += '" class="selected-detail-area-btn">查看</a></td> </tr> '
            }), c += " </tbody> </table> "), c += " ", new o(c)
        }),
        t("alarm/alert-product-code-table-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.adcode),
                s = a.$each,
                l = t.product_code_list,
                n = (t.value, t.i, a.$escape),
                c = "";
            return i ? (c += ' <table class="table table-bordered table-hover product-list-table datatable-me" id="pro-code-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">二维码</th> <th class="alerm-data-detail-th-third">可疑扫码次数</th> <th class="alerm-data-detail-th-fourth">所属二维码订单</th> <th class="alerm-data-detail-th-fifth">最新扫码时间</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.product_code), c += "</td> <td>", c += n(t.warn_record_count), c += "</td> <td>", c += n(t.batch_id), c += "</td> <td>", c += n(t.created_time), c += "</td> </tr> "
            }), c += " </tbody> </table> ") : (c += ' <table class="table qr-table table-bordered table-hover product-list-table datatable-me" id="china-code-datatable"> <thead> <tr> <th class="alerm-data-detail-th-first"></th> <th class="alerm-data-detail-th-second">二维码</th> <th class="alerm-data-detail-th-third">可疑扫码次数</th> <th class="alerm-data-detail-th-fourth">所属二维码订单</th> <th class="alerm-data-detail-th-fifth">最新扫码时间</th> <th class="alerm-data-detail-th-sixth">扫码详情</th> </tr> </thead> <tbody> ', s(l, function (t, e) {
                c += " <tr> <td>", c += n(e + 1), c += "</td> <td>", c += n(t.product_code), c += "</td> <td>", c += n(t.warn_record_count), c += "</td> <td>", c += n(t.batch_id), c += "</td> <td>", c += n(t.created_time), c += '</td> <td><a href="/pages/alarm/detail/qr-detail.html" data-value="', c += n(t.product_code), c += '" class="selected-detail-code-btn">查看</a></td> </tr> '
            }), c += " </tbody> </table> "), c += " ", new o(c)
        }),
        t("alarm/alert-product-preview-js", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.adcode_name,
                l = t.product_name,
                n = t.specification,
                c = t.sumtimes,
                r = t.first_warn_time,
                d = t.last_update,
                p = "";
            return p += '<table class="table only-marge-22 table-bordered product-list-table" > <thead> <tr> <th class="alerm-brief-th-first">商品信息</th> <th class="alerm-brief-th-second">可疑扫码次数（', p += i(s), p += '）</th> <th class="alerm-brief-th-third">初次预警时间</th> <th class="alerm-brief-th-fourth">最新预警时间</th> </tr> </thead> <tbody> <tr> <td> <div> ', p += i(l), p += ' </div> <div class="light-gray-font"> 规格：', p += i(n), p += " </div> </td> <td>", p += i(c), p += "</td> <td>", p += i(r), p += "</td> <td>", p += i(d), p += "</td> </tr> </tbody> </table> ", new o(p)
        }),
        t("bill/apply-invoice-list", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.invoices,
                n = (t.value, t.i, a.$escape),
                c = i.fen_to_yuan,
                r = "";
            return r += '<table class="table table-bordered table-hover product-list-table bill-list-bar" id="editable" > <thead> <tr> <th class="th-first">申请日期</th> <th class="th-second">发票抬头</th> <th class="th-third">发票金额（元）</th> <th class="th-fourth">状态</th> <th class="th-fifth">快递单号</th> </tr> </thead> <tbody class="" id="activity_list_id"> ', s(l, function (t, e) {
                r += ' <tr> <td class="td-first">', r += n(t.created_time), r += "</td> <td>", r += n(t.title), r += "</td> <td>¥", r += n(c(t.amount, 2)), r += '</td> <td class="center ', "待开票" == t.status_display && (r += "blue-text"), r += '">', r += n(t.status_display), r += '</td> <td class="center"> ', t.express_id ? (r += " ", r += n(t.express_id), r += "&nbsp;(", r += n(t.express_company), r += ") ") : r += " -- ", r += " </td> </tr> "
            }), r += " </tbody> </table> ", new o(r)
        }),
        t("bill/invoice-info-show", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.invoice_info,
                l = "";
            return l += '<li class="address-list center-block"> <p class="recipient-address"> ', l += i(s.title), l += ' </p> <p class="recipient-people"><span class="list-title text-right" >纳税号：</span>', l += i(s.taxpayer_number), l += '</p> <p class="recipient-people"><span class="list-title text-right">联系人：</span>', l += i(s.name), l += '</p> <p class="recipient-people"><span class="list-title text-right">联系电话：</span>', l += i(s.mobile), l += '</p> <p class="recipient-people"><span class="list-title text-right">邮寄地址：</span>', l += i(s.address), l += ' <a class="blue-text change-address pull-right" href="javascript:;" data-title="', l += i(s.title), l += '" data-taxpayer_number="', l += i(s.taxpayer_number), l += '" data-name="', l += i(s.name), l += '" data-mobile="', l += i(s.mobile), l += '" data-address="', l += i(s.address), l += '" > 修改 </a> </p> </li> ', new o(l)
        }),
        t("bill/list-empty", '<table class="table table-bordered table-hover product-list-table bill-list-bar" id="editable" > <thead> <tr> <th class="th-first">申请日期</th> <th class="th-second">发票抬头</th> <th class="th-third">发票金额（元）</th> <th class="th-fourth">状态</th> <th class="th-fifth">快递单号</th> </tr> </thead> </table> <div class="empty"> <div class="empty-icon iconfont icon-zanwujilu"></div> <p class="empty-text">无发票记录，<a href="javascript:;" class="create-link" id="apple-bill-btn">可申请发票</a> </p> </div> '), t("codes/address_list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.address_length),
                s = a.$each,
                l = t.addresses,
                n = (t.value, t.i, a.$escape),
                c = "";
            return 0 == i ? c += " <p>无收货信息，请新增收货地址</p> " : (c += ' <ul class="address-ul clearfix"> ', s(l, function (t, e) {
                c += " <li ", e > 0 && (c += ' class="hidden" '), c += '> <span class="company ', c += 0 == e ? " active" : "unchecked", c += '" data-name="', c += n(t.username), c += '" data-mobile="', c += n(t.mobile), c += '" data-address="', c += n(t.address), c += '" data-region="', c += n(t.region), c += '">', c += n(t.username), c += ' <div class="tri-bar"> <i class="mark-icon"></i> <div class="triangle-bottomright"></div> </div> </span> <p class="address-con">', c += n(t.username), c += '<span class="phone-con">', c += n(t.mobile), c += "</span>", c += n(t.region), c += "-", c += n(t.address), c += "</p> </li> "
            }), c += " </ul> "), c += " ", i > 1 && (c += ' <div> <div class="more-address pull-left" id="more-address">更多地址 <i class="iconfont more-address-iconfont"></i> </div> <div class="more-address pull-left more-address-up" id="more-address-up">收起 <i class="iconfont more-address-iconfont up"></i> </div> </div> '), new o(c)
        }),
        t("codes/code_tips", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.batch_id,
                l = t.pay_success,
                n = t.total_fee,
                c = "";
            return c += '<div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content n-p">  <div class="order-success-con form-box clearfix"> <div class="find-password-form order-success pull-left"> <p class="order-success-title">订单编号： <span>', c += i(s), c += '</span></p> <div class="order-success-tips" id="register-tips"> <div class="form-tips-box text-center"> ', c += 1 == l ? ' <img src="/static/img/tips-icon.png" class="center-block" alt="" width="82" height="82"> <p class="first-tips-text text-center">支付成功！</p> ' : ' <p class="first-tips-text text-center">支付失败！</p> ', c += ' <p class="second-tips-text text-center">支付金额：¥', c += i(n), c += '</p> <a href="/pages/codes/order-detail.html?batch_id=', c += i(s), c += '" class="success-url-qrcode text-center center-block">返回二维码订单</a> </div> </div> </div> </div> </div> </div> </div> </div> ', new o(c)
        }),
        t("codes/order_detail", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.status,
                l = a.$escape,
                n = t.created_time,
                c = t.pay_time,
                r = t.print_time,
                d = t.send_time,
                p = t.batch_id,
                u = t.receive_info,
                h = t.show_expire_hour,
                m = t.show_expire_minute,
                f = t.show_expire_second,
                v = t.pay_fee,
                b = t.user_status_display,
                g = t.send_info,
                _ = t.product_picture,
                y = t.product_name,
                x = t.specification,
                w = t.size,
                $ = t.total_amount,
                z = t.origin_fee,
                k = "";
            return s < 20 && (k += ' <ul class="order-nav-bar clearfix"> <li class="first active"> <div class="order-flow-bar"> <div class="circle-bar"> <span class="iconfont icon-icontijiaoshenqing"></span> </div> <p class="flow-bar">提交申请</p> <p class="time-bar">', k += l(n), k += '</p> </div> </li> <li class="', c && (k += "active"), k += '"> <div class="arrow-nav-li pull-left"> <div class="arrow-nav"></div> </div> <div class="order-flow-bar pull-left"> <div class="circle-bar"> <span class="iconfont icon-zhifu"></span> </div> <p class="flow-bar">付款成功</p> <p class="time-bar">', k += l(c), k += '</p> </div> </li> <li class="', r && (k += "active"), k += '"> <div class="arrow-nav-li pull-left"> <div class="arrow-nav"></div> </div> <div class="order-flow-bar pull-left"> <div class="circle-bar"> <span class="iconfont icon-dayin"></span> </div> <p class="flow-bar">印刷完成</p> <p class="time-bar">', k += l(r), k += '</p> </div> </li> <li class="', d && (k += "active"), k += '"> <div class="arrow-nav-li pull-left"> <div class="arrow-nav"></div> </div> <div class="order-flow-bar pull-left"> <div class="circle-bar"> <span class="iconfont icon-fahuo"></span> </div> <p class="flow-bar">已发货</p> <p class="time-bar">', k += l(d), k += "</p> </div> </li> </ul> "), k += ' <div class="order-detail clearfix"> <div class="detail-l pull-left"> <h3 class="detail-l-title">订单信息</h3> <ul class="detail-l-ul"> <li><span>订单编号：</span>', k += l(p), k += "</li> <li><span>收货地址：</span>", k += l(u.mobile), k += " ", k += l(u.region), k += " ", k += l(u.address), k += '</li> </ul> </div> <div class="detail-r pull-right"> ', 0 == s ? (k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：二维码已申请，等待付款。</h3> <p class="detail-logistics">订单还将为您保留', k += l(h), k += "小时", k += l(m), k += "分", k += l(f), k += '秒，超时订单将自动取消</p> <p class="detail-logistics last">应付金额： <span class="pay-money">¥', k += l(i.fen_to_yuan(v, 2)), k += '</span> 您可以<button type="button" class="btn btn-outline btn-primary pay-now" data-batch-id="', k += l(p), k += '">立即付款</button> <a href="javascript:;" class="apply-link cancel_batch" data-batch-id="', k += l(p), k += '">取消订单</a></p> </div> ') : 10 == s || 11 == s ? (k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：已支付成功，等待印刷。</h3> <p class="detail-logistics last">您可以 <a href="javascript:;" class="apply-link apply_refund" data-batch-id="', k += l(p), k += '">申请退款</a> <a href="/pages/trace/static/list.html" class="apply-link trace-btn">绑定溯源信息</a> </p> </div> ') : 12 == s || 13 == s || 14 == s || 15 == s ? k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：待发货。</h3> <p class="detail-logistics last">您可以 <a href="/pages/codes/create-code.html" class="btn btn-success btn-facebook btn-outline apply-link">再次申请二维码</a> <a href="/pages/trace/static/list.html" class="apply-link trace-btn">绑定溯源信息</a> </p> </div> ' : 16 == s ? (k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：', k += l(b), k += '</h3> <p class="detail-logistics">物流：<span class="express">', k += l(g.company), k += "</span> 运单号：<span>", k += l(g.id), k += '</span></p> <p class="detail-logistics last">您可以 <a href="/pages/codes/create-code.html" class="btn btn-success btn-facebook btn-outline apply-link">再次申请二维码</a> <a href="/pages/trace/static/list.html" class="apply-link trace-btn">绑定溯源信息</a> </p> </div> ') : s >= 20 && s <= 29 ? (k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：', k += l(b), k += '</h3> <p class="detail-logistics">退款金额：<span class="pay-money">¥', k += l(i.fen_to_yuan(v, 2)), k += '</span></p> <p class="detail-logistics last">您可以 <a href="/pages/codes/create-code.html" class="btn btn-success btn-facebook btn-outline apply-link">再次申请二维码</a> </p> </div> ') : (k += '  <div class="detail-r-con"> <span class="detail-icon iconfont icon-zhuangtai"></span> <h3 class="detail-title">订单状态：', k += l(b), k += '</h3> <p class="detail-logistics">应付金额：<span class="pay-money">¥', k += l(i.fen_to_yuan(v, 2)), k += '</span></p> <p class="detail-logistics last">您可以 <a href="/pages/codes/create-code.html" class="btn btn-success btn-facebook btn-outline apply-link">再次申请二维码</a> </p> </div> '), k += ' </div> </div> <div class="relate-bar"> <ul class="relate-title-ul relate-ul clearfix"> <li class="first">关联商品的信息</li> <li class="second">二维码样式</li> <li class="third">二维码尺寸</li> <li class="fourth">申请二维码数量</li> <li class="fifth">金额</li> </ul> <ul class="relate-con-ul relate-ul clearfix"> <li class="first"> <div class="relate-pic-bar pull-left"> <img src="', k += l(_), k += '" class="relate-pic" width="73px" height="51px"/> </div> <div class="relate-con-bar"> <p class="relate-con">', k += l(y), k += '</p> <p class="relate-con-spec">规格：', k += l(x), k += '</p> </div> </li> <li class="second"> <div class="qrcode-style-bar pull-left"> <div class="qrcode-bar"> </div> <img src="/static/img/qr-code/2030min.png" class="relate-code-img" /> </div> <div class="qrcode-text-bar"> <a href="javascript:;" class="view-pic-btn">点击查看大图</a> <p>扫码查看防伪信息</p> </div> </li> <li class="third light-gray">', k += l(i.qrcode_size_human(w)), k += '</li> <li class="fourth light-gray">', k += l($), k += ' </li> <li class="fifth light-gray"> <p class="expire-price">¥', k += l(i.fen_to_yuan(z, 2)), k += "</p> <p>¥", k += l(i.fen_to_yuan(v, 2)), k += "</p> </li> </ul> </div> ", new o(k)
        }),
        t("codes/order_list", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.batch_length,
                l = a.$each,
                n = t.batch,
                c = (t.value, t.i, a.$escape),
                r = "";
            return 0 == s ? r += ' <div class="empty"> <div class="iconfont icon-zhengfangxing empty-icon"></div> <p class="empty-text">无二维码订单，<a href="/pages/codes/create-code.html" class="create-link">申请二维码</a></p> </div> ' : (r += ' <ul class="code-ul"> ', l(n, function (t, e) {
                r += ' <li> <h3 class="code-title"><span>', r += c(t.created_time), r += "</span>订单编号：", r += c(t.batch_id), r += '</h3> <dl class="code-dl clearfix"> <dd class="code-dl-name"> <p> <a href="/pages/product/product-detail.html?product_id=', r += c(t.product_id), r += '" class="code-dl-a code-pro-name"> ', r += c(t.product_name), r += ' </a> </p> <p class="gray-font">规格：', r += c(t.specification), r += '</p> </dd> <dd class="gray-font code-dl-size">', r += c(i.qrcode_size_human(t.size)), r += '</dd> <dd class="gray-font code-dl-num">', r += c(t.total_amount), r += '</dd> <dd class="gray-font code-dl-money">¥', r += c(i.fen_to_yuan(t.pay_fee, 2)), r += '</dd> <dd class="code-dl-state code-dl-status"> ', 0 == t.status ? (r += ' <p class="dd-state">', r += c(t.user_status_display), r += "</p> ") : (r += ' <p class="gray-font">', r += c(t.user_status_display), r += "</p> "), r += ' <p><a href="/pages/codes/order-detail.html?batch_id=', r += c(t.batch_id), r += '" class="code-dl-a">订单详情</a></p> </dd> <dd class="code-dl-operate code-dl-operate"> ', 0 == t.status ? (r += ' <button type="button" class="btn btn-outline btn-primary order-list-btn-pay" data-batch-id="', r += c(t.batch_id), r += '">立即支付</button> <p><a href="/pages/codes/order-detail.html?batch_id=', r += c(t.batch_id), r += '" class="code-dl-a">取消订单</a></p> ') : 10 == t.status || 11 == t.status ? (r += ' <p><a href="/pages/codes/order-detail.html?batch_id=', r += c(t.batch_id), r += '" class="btn btn-outline btn-default apply-gray-btn">申请退款</a></p> ') : r += ' <p><a href="/pages/codes/create-code.html" class="btn btn-outline btn-default apply-gray-btn">再次申请二维码</a></p> ', r += " ", 10 != t.status && 11 != t.status && 12 != t.status && 13 != t.status && 14 != t.status && 15 != t.status && 16 != t.status || (r += ' <p><a href="/pages/trace/static/list.html" class="code-dl-a">绑定溯源信息</a></p> '), r += " </dd> </dl> </li> "
            }), r += " </ul> "), r += " ", new o(r)
        }),
        t("codes/order_pay", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.batch_id,
                n = t.from_create,
                c = t.show_expire_hour,
                r = t.show_expire_minute,
                d = t.show_expire_second,
                p = t.receive_info,
                u = t.product_name,
                h = t.specification,
                m = t.total_amount,
                f = t.size,
                v = t.origin_fee,
                b = t.pay_fee,
                g = "";
            return g += '<ul class="order-pay-ul"> <input type="hidden" name="batch_id" value="', g += s(l), g += '" /> <input type="hidden" name="pay_type" value="11" /> <li class="part-line"> <h3 class="clearfix order-number-h3"> ', 1 == n && (g += "订单提交成功，请您尽快付款！"), g += "订单编号：", g += s(l), g += ' </h3> <div class="clearfix order-warning">请您在<span class="red-text"> ', 1 == n ? g += " 48小时 " : (g += " ", g += s(c), g += "小时", g += s(r), g += "分", g += s(d), g += "秒 "), g += '</span>内完成支付，否则订单将会自动取消。 </div> </li> <li class="part-line order-address-con"> <p class="order-p">收货地址：', g += s(p.name), g += '<span class="phone-con">', g += s(p.mobile), g += "</span>", g += s(p.region), g += " ", g += s(p.address), g += '</p> <p class="order-p">商品信息：', g += s(u), g += "（规格：", g += s(h), g += '）</p> <p class="order-p">二维码数量：', g += s(m), g += ' </p> <p class="order-p">二维码尺寸：', g += s(i.qrcode_size_human(f)), g += '</p> </li> <li> <h3 class="clearfix order-number-h3"> 选择支付方式 </h3> <div class="pay-method-bar clearfix"> <span class="company spacing" data-pay-type="11">微信支付 <div class="tri-bar"> <i class="mark-icon"></i> <div class="triangle-bottomright"></div> </div> </span> <span class="company unchecked spacing" data-pay-type="20">支付宝支付 <div class="tri-bar"> <i class="mark-icon"></i> <div class="triangle-bottomright"></div> </div> </span> </div> <div class="clearfix order-m-r"> <div class="order-btn-bar l-btn"> <p class="payable expire">原价：<span class="expire-price">¥', g += s(i.fen_to_yuan(v, 2)), g += '</span></p> <p class="payable">应付金额：<span class="red-text">¥', g += s(i.fen_to_yuan(b, 2)), g += '</span></p> <button type="button" class="btn btn-w-m btn-primary order-btn">立即支付</button> </div> </div> </li> </ul> ', new o(g)
        }),
        t("codes/order_pay_wx", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.pay_fee,
                n = t.code_img_url,
                c = t.batch_id,
                r = "";
            return r += '<div class="mask-box"> <div class="pay-money-box"> <p class="top-title">支付', r += s(i.fen_to_yuan(l, 2)), r += '元<i class="fa fa-times pull-right close-btn close-pay"></i></p> <div class="bottom-content"> <p class="qr-code-title">微信扫码支付</p> <div class="pay-code-box center-block"> <img src="', r += s(n), r += '" alt="code" width="100%"> </div> <hr class="under-line"> <p class="success-tips text-center">请完成支付并 <a href="/pages/codes/order-detail.html?batch_id=', r += s(c), r += '" class="order-detail btn btn-primary">查看订单</a></p> </div> </div> </div> ', new o(r)
        }),
        t("codes/select_products_option", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.products,
                l = (t.value, t.i, a.$escape),
                n = "";
            return n += '<option value="">请选择商品</option> ', i(s, function (t, e) {
                n += ' <option value="', n += l(t.product_id), n += '" sepc="', n += l(t.specification), n += '">', n += l(t.name), n += "</option> "
            }), n += " ", new o(n)
        }),
        t("company-info/brand-list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.brands,
                l = (t.value, t.index, a.$escape),
                n = "";
            return n += "<select class='form-control-create' name='brand_id'> <option value=''>请选择品牌</option> ", i(s, function (t, e) {
                n += " <option value='", n += l(t.bid), n += "'>", n += l(t.name), n += "</option> "
            }), n += " </select> ", new o(n)
        }),
        t("company-info/list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.company),
                s = a.$escape,
                l = a.$each,
                n = t.brands,
                c = (t.value, t.index, t.brands_total),
                r = "";
            return r += ' <div class="ibox-content n-p company-list-content"> <h3 class="company-list-h3">企业简介</h3> <ul class="company-list-ul info-ul clearfix"> ', i.kind ? (r += ' <li> <div class="name-bar"> <div class="preview" data-id="', r += s(i.cid), r += '" data-kind="', r += s(i.kind), r += '">查看预览</div> <div class="name-box"> ', r += s(i.name), r += ' </div> </div> <div class="handle-bar clearfix"> <div class="pull-left handle-btn modify-btn"> <a href="./create-info', 2 == i.kind && (r += "-link"), r += '.html?is_edit=1" class="modify-btn-a"> <span class="iconfont icon-xiugai"></span> 修改</a> </div> <div class="pull-left handle-btn delete-btn" data-id="', r += s(i.cid), r += '"><span class="iconfont icon-shanchu"></span>删除</div> </div> </li> ') : r += ' <li class="add"> <div class="add-bar"></div> </li> ', r += ' </ul>  <h3 class="company-list-h3">品牌文化</h3> <ul class="company-list-ul brand-ul clearfix"> ', l(n, function (t, e) {
                r += '  <div class="preview-mask mask-box hidden" id="brand-mask-', r += s(t.brand_id), r += '"> <div class="preview-box clearfix"> <p class="preview-mask-title clearfix"> <span class="pull-left">品牌文化</span> <span class="close-btn pull-right"> <i class="iconfont icon-icclose48px"></i> </span> </p> <div class="content"> <div class="content-part clearfix"> <div class="content-title">关联品牌：</div> <input type="text" disabled="disabled" name="info_link" class="input-in form-control pull-left content-inp" placeholder="', r += s(t.name), r += '"> </div> <div class="content-part clearfix"> <div class="content-title">品牌文化外部链接：</div> <input type="text" disabled="disabled" name="info_link" class="input-in form-control pull-left content-inp" placeholder="', r += s(t.link), r += '"> </div> </div> </div> </div>  <li> <div class="name-bar"> <div class="preview" data-id="', r += s(t.brand_id), r += '" data-kind="', r += s(t.kind), r += '">查看预览</div> <div class="name-box"> ', r += s(t.name), r += ' </div> </div> <div class="handle-bar clearfix"> <div class="pull-left handle-btn modify-btn" data-id="', r += s(t.brand_id), r += '"> <a href="./create-brand', 2 == t.kind && (r += "-link"), r += ".html?id=", r += s(t.brand_id), r += '&is_edit=1" class="modify-btn-a"> <span class="iconfont icon-xiugai"></span> 修改</a> </div> <div class="pull-left handle-btn delete-btn" data-id="', r += s(t.brand_id), r += '"><span class="iconfont icon-shanchu"></span>删除</div> </div> </li> '
            }), r += " ", (0 === n.length || n.length < c) && (r += ' <li class="add"> <div class="add-bar"></div> </li> '), r += " </ul> </div> ", new o(r)
        }),
        t("company-info/preview-mask", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.company,
                l = a.$each,
                n = t.brands,
                c = (t.value, t.index, "");
            return c += ' <div class="preview-mask mask-box hidden" id="info-mask"> <div class="preview-box clearfix"> <p class="preview-mask-title clearfix"> <span class="pull-left">企业简介</span> <span class="close-btn pull-right" > <i class="iconfont icon-icclose48px"></i> </span> </p> <div class="content company-info-con"> <div class="content-part clearfix"> <div class="content-title">企业简介外部链接：</div> <input type="text" disabled="disabled" name="info_link" class="input-in form-control pull-left" placeholder="', c += i(s.link), c += '"> </div> </div> </div> </div>  ', l(n, function (t, e) {
                c += '  <div class="preview-mask mask-box hidden" id="brand-mask-', c += i(t.brand_id), c += '"> <div class="preview-box clearfix"> <p class="preview-mask-title clearfix"> <span class="pull-left">品牌文化</span> <span class="close-btn pull-right"> <i class="iconfont icon-icclose48px"></i> </span> </p> <div class="content"> <div class="content-part clearfix"> <div class="content-title">关联品牌：</div> <input type="text" disabled="disabled" name="info_link" class="input-in form-control pull-left" placeholder="', c += i(t.name), c += '"> </div> <div class="content-part clearfix"> <div class="content-title">品牌文化外部链接：</div> <input type="text" disabled="disabled" name="info_link" class="input-in form-control pull-left" placeholder="', c += i(t.link), c += '"> </div> </div> </div> </div>  '
            }), c += " ", new o(c)
        }),
        t("data-center/area-scan-all", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.area_list,
                n = (t.$value, t.$index, a.$escape),
                c = t.total,
                r = "";
            return r += '<table id="area-scan-detail-table" class="datatable-me table table-bordered table-hover text-center" style="font-size: 14px;color: #666;"> <thead> <tr> <th class="text-center" width="4%"></th> <th class="text-center" width="24%">省/直辖市</th> <th class="text-center" width="24%">扫码次数</th> <th class="text-center" width="24%">占比</th> <th class="text-center" width="24%">扫码趋势</th> </tr> </thead> <tbody class=""> ', s(l, function (t, e) {
                r += ' <tr> <td class="">', r += n(e + 1), r += "</td> <td>", r += n(t.adcode_name), r += '</td> <td class="">', r += n(t.incr_times), r += '</td> <td class="">', r += n(i.percent_display(t.incr_times, c)), r += '</td> <td class=""><a href="/pages/data-center/area-scan-times.html?adcode=', r += n(t.adcode), r += "&adcode_name=", r += n(t.adcode_name), r += '" class="modify no-margin">查看</a></td> </tr> '
            }), r += " </tbody> </table> ", new o(r)
        }),
        t("data-center/area-scan-detail", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.adcode_scan_info),
                s = a.$each,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return n += '<table id="detail-table" class="datatable-me table table-bordered table-hover text-center ', 0 === i.length && (n += "empty-table"), n += '" style="font-size: 14px;color: #666;"> <thead> <tr> <th class="text-center" width="4%"></th> <th class="text-center" width="24%">时间</th> <th class="text-center" width="24%">扫码次数</th> <th class="text-center" width="24%">查验次数</th> <th class="text-center" width="24%">扫码用户数</th> </tr> </thead> <tbody class=""> ', s(i, function (t, e) {
                n += " <tr> <td>", n += l(e + 1), n += '</td> <td class="data_center-table-title_color">', n += l(t.day), n += '</td> <td class="center">', n += l(t.incr_times), n += '</td> <td class="center">', n += l(t.incr_verified), n += '</td> <td class="center">', n += l(t.incr_users), n += "</td> </tr> "
            }), n += " </tbody> </table>", new o(n)
        }),
        t("data-center/area-scan-times-top10", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.area_list_top10,
                l = a.$each,
                n = (t.$value, t.$index, a.$escape),
                c = t.total,
                r = "";
            return r += '<thead> <tr> <th class="text-center" width="">名次</th> <th class="text-center" width="">省/直辖市（Top10）</th> <th class="text-center" width="">扫码次数</th> <th class="text-right" width="">占比</th> </tr> </thead> <tbody> ', s.length > 0 ? (r += " ", l(s, function (t, e) {
                r += " <tr> <td>", r += n(e + 1), r += "</td> <td>", r += n(t.adcode_name), r += "</td> <td>", r += n(t.incr_times), r += '</td> <td class="text-right"> ', r += n(i.percent_display(t.incr_times, c)), r += " </td> </tr> "
            }), r += " ") : r += ' <td class="text-center table-empty no-border" colspan="4" height="370"> <i class="iconfont icon-zanwujilu table-empty-icon"></i> <p class="table-empty-text">暂无数据</p> </td> ', r += " </tbody> ", new o(r)
        }),
        t("data-center/area-scan-top10", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.area_list),
                s = a.$each,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return i.length > 0 ? (n += " ", s(i, function (t, e) {
                n += " <tr> ", "" != t.incr_times && (n += '<td class="place-num">', n += l(e + 1), n += "</td>"), n += ' <td class="info">', n += l(t.adcode_name), n += '</td> <td class="amount">', n += l(t.incr_times), n += "</td> </tr> "
            }), n += " ") : n += ' <td class="text-center table-empty" colspan="3"> <i class="iconfont icon-zanwujilu table-empty-icon"></i> <p class="table-empty-text">暂无数据</p> </td> ', new o(n)
        }),
        t("data-center/overview", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.today_scan_times,
                n = t.today_scan_verified,
                c = t.today_scan_users,
                r = t.yesterday_scan_times,
                d = t.yesterday_scan_verified,
                p = t.yesterday_scan_users,
                u = t.total_times,
                h = t.total_verified,
                m = t.total_users,
                f = "";
            return f += '<tr> <th></th> <th>扫码次数</th> <th>查验次数</th> <th>查验占比</th> <th>扫码用户</th> </tr> <tr> <td class="text-left" style="padding-left: 14px;">今日</td> <td class="today">', f += s(l), f += '</td> <td class="today">', f += s(n), f += "</td> ", 0 == l ? f += ' <td class="today">0</td> ' : (f += " <td>", f += s(i.percent_display(n, l)), f += "</td> "), f += ' <td class="today">', f += s(c), f += '</td> </tr> <tr> <td class="text-left" style="padding-left: 14px;">昨日</td> <td>', f += s(r), f += "</td> <td>", f += s(d), f += "</td> ", 0 == r ? f += " <td>0</td> " : (f += " <td>", f += s(i.percent_display(d, r)), f += "</td> "), f += " <td>", f += s(p), f += '</td> </tr> <tr> <td class="text-left" style="padding-left: 14px;">累计</td> <td>', f += s(u), f += "</td> <td>", f += s(h), f += "</td> ", 0 == u ? f += " <td>0</td> " : (f += " <td>", f += s(i.percent_display(h, u)), f += "</td> "), f += " <td>", f += s(m), f += "</td> </tr> ", new o(f);
        }),
        t("data-center/product-scan-area", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.product_area_scan_top10,
                l = a.$each,
                n = (t.$value, t.$index, a.$escape),
                c = t.total_scanned,
                r = "";
            return r += '<thead> <tr> <th class="text-center" width="">名次</th> <th class="text-center" width="">省/直辖市（Top10）</th> <th class="text-center" width="">扫码次数</th> <th class="text-right" width="">占比</th> </tr> </thead> <tbody> ', s.length > 0 ? (r += " ", l(s, function (t, e) {
                r += " <tr> <td>", r += n(e + 1), r += "</td> <td>", r += n(t.adcode_name), r += "</td> <td>", r += n(t.incr_times), r += "</td> ", 0 == c ? r += " <td>0</td> " : (r += ' <td class="text-right">', r += n(i.percent_display(t.incr_times, c)), r += "</td> "), r += " </tr> "
            }), r += " ") : r += ' <td class="text-center table-empty no-border" colspan="4" height="370"> <i class="iconfont icon-zanwujilu table-empty-icon"></i> <p class="table-empty-text">暂无数据</p> </td> ', r += " </tbody> ", new o(r)
        }),
        t("data-center/product-scan-detail-by-adcode", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.product_area_scan_list,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return n += '<table id="scan-detail-by-adcode-table" class="datatable-me tab-pane table table-bordered table-hover text-center" style="margin-top: 30px;font-size: 14px;color: #666;"> <thead> <tr> <th class="text-center" width="4%"></th> <th class="text-center" width="24%">省/直辖市</th> <th class="text-center" width="24%">扫码次数</th> <th class="text-center" width="24%">查验次数</th> <th class="text-center" width="24%">扫码用户数</th> </tr> </thead> <tbody class=""> ', i(s, function (t, e) {
                n += " <tr> <td>", n += l(e + 1), n += '</td> <td class="data_center-table-title_color">', n += l(t.adcode_name), n += '</td> <td class="center">', n += l(t.incr_times), n += '</td> <td class="center">', n += l(t.incr_verified), n += '</td> <td class="center">', n += l(t.incr_users), n += "</td> </tr> "
            }), n += " </tbody> </table> ", new o(n)
        }),
        t("data-center/product-scan-detail-by-time", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.product_scan_info,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return n += '<table id="scan-detail-by-time-table" class="datatable-me table table-bordered table-hover text-center" style="margin-top: 30px;font-size: 14px;color: #666;"> <thead> <tr> <th class="text-center" width="4%"></th> <th class="text-center" width="24%">时间</th> <th class="text-center" width="24%">扫码次数</th> <th class="text-center" width="24%">查验次数</th> <th class="text-center" width="24%">扫码用户数</th> </tr> </thead> <tbody class=""> ', i(s, function (t, e) {
                n += " <tr> <td>", n += l(e + 1), n += '</td> <td class="data_center-table-title_color">', n += l(t.day), n += '</td> <td class="center">', n += l(t.incr_times), n += '</td> <td class="center">', n += l(t.incr_verified), n += '</td> <td class="center">', n += l(t.incr_users), n += "</td> </tr> "
            }), n += " </tbody> </table> ", new o(n)
        }),
        t("data-center/product-scan-times-all", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.product_scan_list),
                s = a.$each,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return n += '<table id="product-scan-times-all-table" class="datatable-me table-stripped table table-bordered table-hover QRcode-detail ', 0 === i.length && (n += "empty-table"), n += '" style="font-size: 16px;color: #333;"> <thead> <tr> <th class="" width="5%"></th> <th class="" width="55%">商品信息</th> <th class="" width="20%">扫码次数</th> <th class="" width="20%">扫码详情</th> </tr> </thead> <tbody> ', s(i, function (t, e) {
                n += ' <tr> <td class="text-center">', n += l(e + 1), n += '</td> <td class="qrcode-product-name td-first"> <a class="product" href="/pages/data-center/product-scan-times.html?product_id=', n += l(t.product_id), n += "&product_name=", n += l(t.product_name), n += "&specification=", n += l(t.specification), n += '">', n += l(t.product_name), n += '</a> <p class="product-size">规格：', n += l(t.specification), n += "</p> </td> <td>", n += l(t.incr_times), n += '</td> <td><a href="/pages/data-center/product-scan-times.html?product_id=', n += l(t.product_id), n += "&product_name=", n += l(t.product_name), n += "&specification=", n += l(t.specification), n += '" class="modify">查看</a></td> </tr> '
            }), n += " </tbody> </table>", new o(n)
        }),
        t("data-center/product-scan-top5", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.product_scan_list),
                s = a.$each,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return i.length > 0 ? (n += " ", s(i, function (t, e) {
                n += " <tr> ", "" != t.product_name && (n += '<td class="place-num">', n += l(e + 1), n += "</td>"), n += ' <td class="info"> <a href="/pages/data-center/product-scan-times.html?product_id=', n += l(t.product_id), n += "&product_name=", n += l(t.product_name), n += "&specification=", n += l(t.specification), n += '">', n += l(t.product_name), n += '</a> <p class="product-size">', "" != t.product_name && (n += "规格：", n += l(t.specification)), n += '</p> </td> <td class="amount">', n += l(t.incr_times), n += "</td> </tr> "
            }), n += " ") : n += ' <td class="text-center table-empty" colspan="3"> <i class="iconfont icon-zanwujilu table-empty-icon"></i> <p class="table-empty-text">暂无数据</p> </td> ', new o(n)
        }),
        t("data-center/qrcode-detail", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.product_list,
                l = (t.$value, t.$index, a.$escape),
                n = "";
            return n += '<table id="qrcode-detail-table" class="datatable-me table table-bordered table-hover QRcode-detail" style="font-size: 16px;color: #333;"> <thead> <tr> <th class="" width="5%"></th> <th class="" width="41%">商品信息</th> <th class="" width="18%">已申请二维码数</th> <th class="" width="18%">已被扫二维码数</th> <th class="" width="18%">可疑二维码数</th> </tr> </thead> <tbody> ', i(s, function (t, e) {
                n += ' <tr> <td class="text-center">', n += l(e + 1), n += '</td> <td class="qrcode-product-name td-first"> <p class="product">', n += l(t.product_name), n += '</p> <p class="product-size">规格：', n += l(t.specification), n += "</p> </td> <td>", n += l(t.genned), n += "</td> <td>", n += l(t.scanned_incr_times), n += "</td> <td>", n += l(t.unusual_incr_times), n += "</td> </tr> "
            }), n += " </tbody> </table> ", new o(n)
        }),
        t("data-center/scan-detail", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.scan_info,
                n = (t.$value, t.$index, a.$escape),
                c = "";
            return c += '<table id="dataTableShow" class="datatable-me table table-bordered table-hover text-center table-stripped" style="margin-top: 40px;font-size: 16px;color: #333;"> <thead> <tr> <th class="text-center" width="5%"> </th> <th class="text-center">时间</th> <th class="text-center">扫码用户数</th> <th class="text-center">扫码次数</th> <th class="text-center">查验次数</th> <th class="text-center">查验占比</th> </tr> </thead> <tbody class=""> ', s(l, function (t, e) {
                c += ' <tr> <td class="td-first">', c += n(e + 1), c += "</td> <td>", c += n(t.day), c += '</td> <td class="center">', c += n(t.incr_users), c += '</td> <td class="center">', c += n(t.incr_times), c += '</td> <td class="center">', c += n(t.incr_verified), c += '</td> <td class="center">', c += n(i.percent_display(t.incr_verified, t.incr_times)), c += "</td> </tr> "
            }), c += " </tbody> </table>", new o(c)
        }),
        t("prizes/detail-coupon-tpl", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.img,
                l = a.$escape,
                n = t.name,
                c = i.fen_to_yuan,
                r = t.price,
                d = t.end_time,
                p = t.desc,
                u = t.id,
                h = t.start_time,
                m = t.file,
                f = "";
            return f += '<div class="tabs-container"> <ul class="phone-ul create-prizes-ul clearfix"> <li class="col-lg-6 phone-model"> <div class="model-bar"> <div class="phone-bar"> <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> </h3> <div class="coupon-bar"> <ul class="coupon-ul"> <li class="gift-list-box "> <div class="gift-detail clearfix"> ', s ? (f += ' <img src="', f += l(s), f += '" class="gift-icon pull-left"/> ') : f += ' <img src="/static/img/prizes/prizes-default-small.png" class="gift-icon pull-left"/> ', f += ' <div class="gift-illustrate pull-left"> <p class="gift-title"><span id="phone-product-name">', f += l(n), f += '</span></p> <p class="gift-price">价值<span id="phone-price">', f += l(c(r, 2)), f += '</span>元 <span class="price-icon"></span></p> <p class="gift-date">有效期至：<span id="phone-end-time">', f += l(d), f += '</span></p> </div> </div> <p class="code-use clearfix"><span class="code-use-icon pull-left"></span>券码：<span id="phone-gift-code"></span></p> </li> </ul> <div class="use-instruction"> <div class="triangle-up"></div> <ul class="ins-ul"> <li class="title">使用说明</li> <li class="text"><span class="num">1.</span>请在有效期内使用</li> <li class="text"><span class="num">2.</span>请在与优惠券相对应的平台或店铺使用。</li> ', p && (f += ' <li class="text"><span class="num">3.</span><span id="phone-use-instructions">', f += l(p), f += "</span></li> "), f += ' </ul> </div> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-prizes-form" method="POST"> <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品名称</span> </p> <input type="hidden" value="', f += l(u), f += '" name="id"> <input type="text" name="name" class="input-in form-control readonly-inp create-prizes-inp" id="product-name" maxlength="10" readonly="readonly" value="', f += l(n), f += '"> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品价值</span> </p> <input type="text" name="price" class="input-in form-control readonly-inp" id="price" readonly="readonly" value="', f += l(c(r, 2)), f += '"> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品有效期</span> </p> <div class="clearfix"> <input type="text" class="input-sm form-control form_datetime pull-left" id="start-time" name="start_time" value="', f += l(h), f += '" readonly="readonly"/> <span class="prizes-interval pull-left">至</span> <input type="text" class="input-sm form-control form_datetime pull-left create-prizes-inp" id="end-time" name="end_time" value="', f += l(d), f += '" readonly="readonly"/> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">使用说明</span> </p> <div class="inp-bar"> <textarea class="use-ins-textarea form-control readonly-inp create-prizes-inp" rows="4" readonly="readonly" name="desc" id="use-instructions" placeholder="请输入优惠券的使用说明">', f += l(p), f += '</textarea> </div> </li> <li class="coupon-detail-bar"> <p class="clearfix input-title form-label-title"> <span class="pull-left">图片</span> </p>  <div class="upload-product-box"> <div class="imageBox verify-show file-inp-bar"> <img src="', f += l(s), f += '"/> </div> </div>  </li> <li> <div class="clearfix input-title form-label-title coupon-file"> <span class="pull-left">优惠券<span class="red-text">*</span></span> <div>&nbsp;&nbsp; <a href="', f += l(m), f += '" target="_blank">优惠券文件下载</a>&nbsp;&nbsp; <span class="file-succ"></span> </div> </div> <div class="inp-bar"> </div> <div class="note prizes-note prizes-note-file">提示：请按照CSV格式进行导入。下载 <a href="http://sep-protected.oss-cn-beijing.aliyuncs.com/antifake/activity/coupon/%E4%BC%98%E6%83%A0%E5%88%B8.csv" target="_blank" class="blue-color">［示例］</a> </div> </li> <li> <a href="javascript:history.back(-1)" class="btn btn-w-m btn-warning create-btn create-prizes-btn">返回</a> </button> </li> </ul> </form> </li> </ul> </div> ', new o(f)
        }),
        t("prizes/detail-prizes-tpl", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.name,
                n = t.img,
                c = i.fen_to_yuan,
                r = t.price,
                d = t.end_time,
                p = t.id,
                u = t.amount,
                h = t.start_time,
                m = "";
            return m += '<div class="tabs-container"> <ul class="phone-ul create-prizes-ul clearfix"> <li class="col-lg-6 phone-model"> <div class="model-bar"> <div class="phone-bar"> <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> 我的奖品 </h3> <div class="prizes-name" id="phone-prizes-name">', m += s(l), m += '</div> <div class="prizes-pic"> ', n ? (m += ' <img src="', m += s(n), m += '"/> ') : m += ' <img src="/static/img/prizes/prizes-default-big.png"/> ', m += ' </div> <div class="physical-text clearfix">  <div class="value pull-left">价值<span id="phone-price">', m += s(c(r, 2)), m += '</span>元</div> <div class="date pull-right">有效期至：<span id="phone-end-time">', m += s(d), m += '</span></div> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-prizes-form" method="POST"> <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品名称</span> </p> <input type="hidden" value="', m += s(p), m += '" name="id"> <input type="text" name="name" class="input-in form-control readonly-inp" id="prizes-name" readonly="readonly" maxlength="10" value="', m += s(l), m += '"> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title-img form-label-title"> <span class="pull-left">奖品价值</span> </p> <input type="text" name="price" class="input-in form-control readonly-inp" id="price" readonly="readonly" value="', m += s(c(r, 2)), m += '"> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品库存</span> </p> <input type="text" name="amount" class="input-in form-control readonly-inp" id="amount" readonly="readonly" value="', m += s(u), m += '"> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品有效期</span> </p> <div class="clearfix"> <input type="text" class="input-sm form-control form_datetime pull-left" id="start-time" name="start_time" value="', m += s(h), m += '" readonly="readonly"/> <span class="prizes-interval pull-left">至</span> <input type="text" class="input-sm form-control form_datetime pull-left create-prizes-inp" id="end-time" name="end_time" value="', m += s(d), m += '" readonly="readonly"/> </div> </li> <li class="prizes-detail-bar"> <p class="clearfix input-title form-label-title"> <span class="pull-left">图片</span> </p>  <div class="upload-product-box"> <div class="imageBox verify-show file-inp-bar"> <img src="', m += s(n), m += '"/> </div> </div>  </li> <li> <a href="javascript:history.back(-1)" class="btn btn-w-m btn-warning create-btn create-prizes-btn">返回</a> </button> </li> </ul> </form> </li> </ul> </div> ', new o(m)
        }),
        t("prizes/edit-coupon-detail", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.img,
                l = a.$escape,
                n = t.name,
                c = i.fen_to_yuan,
                r = t.price,
                d = t.end_time,
                p = t.desc,
                u = t.id,
                h = t.start_time,
                m = t.used,
                f = "";
            return f += '<div class="tabs-container"> <ul class="phone-ul create-prizes-ul clearfix"> <li class="col-lg-6 phone-model"> <div class="model-bar"> <div class="phone-bar"> <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> </h3> <div class="coupon-bar"> <ul class="coupon-ul"> <li class="gift-list-box "> <div class="gift-detail clearfix"> ', s ? (f += ' <img src="', f += l(s), f += '" class="gift-icon pull-left show-img"/> ') : f += ' <img src="/static/img/prizes/prizes-default-small.png" class="gift-icon pull-left show-img"/> ', f += ' <div class="gift-illustrate pull-left"> <p class="gift-title"><span id="phone-product-name">', f += l(n), f += '</span></p> <p class="gift-price">价值<span id="phone-price">', f += l(c(r, 2)), f += '</span>元 <span class="price-icon"></span></p> <p class="gift-date">有效期至：<span id="phone-end-time">', f += l(d), f += '</span></p> </div> </div> <p class="code-use clearfix"><span class="code-use-icon pull-left"></span>券码：<span id="phone-gift-code"></span></p> </li> </ul> <div class="use-instruction"> <div class="triangle-up"></div> <ul class="ins-ul"> <li class="title">使用说明</li> <li class="text"><span class="num">1.</span>请在有效期内使用</li> <li class="text"><span class="num">2.</span>请在与优惠券相对应的平台或店铺使用。</li> ', p && (f += ' <li class="text"><span class="num">3.</span><span id="phone-use-instructions">', f += l(p), f += "</span></li> "), f += ' </ul> </div> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-prizes-form" method="POST"> <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品名称<span class="red-text">*</span></span> </p> <input type="hidden" value="', f += l(u), f += '" name="id"> <input type="text" name="name" class="input-in form-control create-prizes-inp" id="product-name" maxlength="10" placeholder="请输入不超过10个字的奖品名称" value="', f += l(n), f += '"> <span class="inp-num" id="product-name-num">', f += l(i.length(n)), f += '/10</span> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品价值<span class="red-text">*</span></span> </p> <input type="text" name="price" class="input-in form-control" id="price" placeholder="请输入优惠券的价值" value="', f += l(c(r, 2)), f += '"> </div> </li> <li> <p class="clearfix input-title form-label-title" id="date-limit"> <span class="pull-left">奖品有效期<span class="red-text">*</span></span> </p> <div class="clearfix"> <input type="text" class="input-in input-sm form-control form_datetime pull-left" id="start-time" name="start_time" value="', f += l(h), f += '" ', m && (f += 'disabled="disabled"'), f += '/> <span class="prizes-interval pull-left">至</span> <input type="text" class="input-in input-sm form-control form_datetime pull-left create-prizes-inp" id="end-time" name="end_time" value="', f += l(d), f += '" ', m && (f += 'disabled="disabled"'), f += '/> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">使用说明</span> </p> <div class="inp-bar"> <textarea class="use-ins-textarea form-control create-prizes-inp" rows="4" name="desc" id="use-instructions" placeholder="请输入优惠券的使用说明">', f += l(p), f += '</textarea> </div> </li> <li class="coupon-pic-bar">  <div class="upload-product-box"> <p class="clearfix input-title input-title-img form-label-title"> <span class="pull-left">图片</span> </p> <div class="imageBox verify-show file-inp-bar"> <div class="thumbBox"></div> <div class="spinner" style="display: none">Loading...</div> </div> <div class="note">（请选择大小不超过2M的图片）</div> <div class="action upload-file-img clearfix"> <div class="new-contentarea file-inp-bar tc"> <a href="javascript:void(0)" class="upload-img"> <label for="upload-file">选择图片</label> </a> <input type="file" class="upload-file-cropper" name="upload_file" id="upload-file" ', m && (f += 'disabled="disabled"'), f += ' /> </div> <input type="button" id="btnZoomIn" class="Btnsty_peyton pull-left" value="+"> <input type="button" id="btnZoomOut" class="Btnsty_peyton pull-left" value="-"> <input type="button" id="btnCrop" class="Btnsty_peyton special-width pull-right" value="确定裁切"> </div> </div>  </li> <li> <p class="clearfix input-title form-label-title coupon-file"> <span class="pull-left">优惠券<span class="red-text">*</span></span> <div class="files-bar">选取文件 <input type="file" name="files" class="file-btn" ', m && (f += 'disabled="disabled"'), f += '/> <span class="file-succ" id="file-name"></span> <div class="file-succ-bar"><i class="file-succ-icon"></i>已上传</span></div> </div> </p> <div class="note prizes-note prizes-note-file">提示：请按照CSV格式进行导入。下载 <a href="http://sep-protected.oss-cn-beijing.aliyuncs.com/antifake/activity/coupon/%E4%BC%98%E6%83%A0%E5%88%B8.csv" target="_blank" class="blue-color">［示例］</a> </div> </li> <li> <button type="submit" class="btn btn-w-m btn-primary create-btn create-prizes-btn">编辑奖品</button> </li> </ul> </form> </li> </ul> </div> ', new o(f)
        }),
        t("prizes/edit-prizes-detail", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.name,
                n = t.img,
                c = i.fen_to_yuan,
                r = t.price,
                d = t.end_time,
                p = t.id,
                u = t.amount,
                h = t.used,
                m = t.start_time,
                f = "";
            return f += '<div class="tabs-container"> <ul class="phone-ul create-prizes-ul clearfix"> <li class="col-lg-6 phone-model"> <div class="model-bar"> <div class="phone-bar"> <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> 我的奖品 </h3> <div class="prizes-name" id="phone-prizes-name">', f += s(l), f += '</div> <div class="prizes-pic"> ', n ? (f += ' <img src="', f += s(n), f += '" class="show-img"/> ') : f += ' <img src="/static/img/prizes/prizes-default-big.png" class="show-img"/> ', f += ' </div> <div class="physical-text clearfix">  <div class="value pull-left">价值<span id="phone-price">', f += s(c(r, 2)), f += '</span>元</div> <div class="date pull-right">有效期至：<span id="phone-end-time">', f += s(d), f += '</span></div> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-prizes-form" method="POST"> <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品名称<span class="red-text">*</span></span> </p> <input type="hidden" value="', f += s(p), f += '" name="id" id="edit-id"> <input type="text" name="name" class="input-in form-control" id="prizes-name" maxlength="10" placeholder="请输入不超过10个字的奖品名称" value="', f += s(l), f += '"> <span class="inp-num" id="prizes-name-num">', f += s(i.length(l)), f += '/10</span> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品价值<span class="red-text">*</span></span> </p> <input type="text" name="price" class="input-in form-control" id="price" placeholder="请输入奖品的价值" value="', f += s(c(r, 2)), f += '"> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">奖品库存<span class="red-text">*</span></span> </p> <input type="text" name="amount" class="input-in form-control" id="amount" placeholder="请输入该奖品的库存数量" value="', f += s(u), f += '" ', h && (f += 'disabled="disabled"'), f += '> </div> </li> <li> <p class="clearfix input-title form-label-title" id="date-limit"> <span class="pull-left">奖品有效期<span class="red-text">*</span></span> </p> <div class="clearfix"> <input type="text" class="input-in input-sm form-control form_datetime pull-left" id="start-time" name="start_time" value="', f += s(m), f += '" ', h && (f += 'disabled="disabled"'), f += '/> <span class="prizes-interval pull-left">至</span> <input type="text" class="input-in input-sm form-control form_datetime pull-left create-prizes-inp" id="end-time" name="end_time" value="', f += s(d), f += '" ', h && (f += 'disabled="disabled"'), f += '/> </div> </li> <li class="prizes-pic-bar">  <div class="upload-product-box"> <p class="clearfix input-title input-title-img form-label-title"> <span class="pull-left">图片</span> </p> <div class="imageBox verify-show file-inp-bar"> <div class="thumbBox"></div> <div class="spinner" style="display: none">Loading...</div> </div> <div class="note">（请选择大小不超过2M的图片）</div> <div class="action upload-file-img clearfix"> <div class="new-contentarea file-inp-bar tc"> <a href="javascript:void(0)" class="upload-img"> <label for="upload-file">选择图片</label> </a> <input type="file" class="upload-file-cropper" name="upload_file" id="upload-file" ', h && (f += 'disabled="disabled"'), f += '/> </div> <input type="button" id="btnZoomIn" class="Btnsty_peyton pull-left" value="+"> <input type="button" id="btnZoomOut" class="Btnsty_peyton pull-left" value="-"> <input type="button" id="btnCrop" class="Btnsty_peyton special-width pull-right" value="确定裁切"> </div> </div>  </li> <li> <button type="submit" class="btn btn-w-m btn-primary create-btn create-prizes-btn">编辑奖品</button> </li> </ul> </form> </li> </ul> </div> ', new o(f)
        }),
        t("prizes/list-coupon-tpl", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.total,
                l = a.$each,
                n = t.prize_list,
                c = (t.value, t.i, a.$escape),
                r = i.fen_to_yuan,
                d = "";
            return s > 0 && (d += " ", l(n, function (t, e) {
                d += ' <tr> <td class="td-first"><a href="/pages/prizes/detail-coupon.html?id=', d += c(t.id), d += '" class="modify pro-name">', d += c(t.name), d += "</a></td> <td>", d += c(r(t.price, 2)), d += '</td> <td class="center">', d += t.can_use > 0 ? "可使用" : "不可用", d += '</td> <td class="center">', d += c(t.won_amount), d += " / ", d += c(t.available_amount), d += " / ", d += c(t.amount), d += '</td> <td class="center">', d += c(t.created_time), d += '</td> <td class="center"> ', t.expired ? d += ' <a href="javascript:void(0)" class="modify invalid unclick">修改</a> ' : (d += ' <a href="/pages/prizes/edit-coupon.html?id=', d += c(t.id), d += '" class="modify">修改</a> '), d += " ", t.expired || t.available_amount != t.amount ? d += ' <a href="javascript:void(0)" class="modify invalid unclick">删除</a> ' : (d += ' <a href="javascript:void(0)" onclick="del_prizes(', d += c(t.id), d += ')" class="modify">删除</a> '), d += " </td> </tr> "
            }), d += " "), new o(d)
        }),
        t("prizes/list-prize-tpl", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.total,
                l = a.$each,
                n = t.prize_list,
                c = (t.value, t.i, a.$escape),
                r = i.fen_to_yuan,
                d = "";
            return s > 0 && (d += " ", l(n, function (t, e) {
                d += ' <tr> <td class="td-first"><a href="/pages/prizes/detail-prizes.html?id=', d += c(t.id), d += '" class="modify pro-name">', d += c(t.name), d += "</a></td> <td>", d += c(r(t.price, 2)), d += '</td> <td class="center">', d += t.can_use > 0 ? "可使用" : "不可用", d += '</td> <td class="center">', d += c(t.won_amount), d += " / ", d += c(t.available_amount), d += " / ", d += c(t.amount), d += '</td> <td class="center">', d += c(t.created_time), d += '</td> <td class="center"> ', t.expired ? d += ' <a href="javascript:void(0)" class="modify invalid unclick">修改</a> ' : (d += ' <a href="/pages/prizes/edit-prizes.html?id=', d += c(t.id), d += '" class="modify">修改</a> '), d += " ", t.expired || t.available_amount != t.amount ? d += ' <a href="javascript:void(0)" class="modify invalid unclick">删除</a> ' : (d += ' <a href="javascript:void(0)" onclick="del_prizes(', d += c(t.id), d += ')" class="modify">删除</a> '), d += " </td> </tr> "
            }), d += " "), d += " ", new o(d)
        }),
        t("product/product-list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.products,
                l = (t.value, t.i, a.$escape),
                n = "";
            return i(s, function (t, e) {
                n += ' <tr> <td><a href="/pages/product/product-detail.html?product_id=', n += l(t.product_id), n += '" class="modify pro-name">', n += l(t.name), n += "</a></td> <td>", n += l(t.brand_name), n += "</td> <td>", n += l(t.specification), n += '</td> <td class="center">', n += l(t.created_time), n += '</td> <td class="center">', n += l(t.status_display), n += '</td> <td class="center"> ', 1 == t.status || 2 == t.status ? (n += ' <a href="/pages/product/modify-product.html?product_id=', n += l(t.product_id), n += '" class="modify">修改</a> ') : n += ' <a href="javascript:void(0)" class="modify invalid unclick">修改</a> ', n += " </td> </tr> "
            }), n += " ", new o(n)
        }),
        t("product/product_detail", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.detail,
                l = a.$each,
                n = (t.value, t.i, "");
            return n += ' <div class="row wrapper border-bottom white-bg title-row">'
            + '<div class="col-sm-16"> '
            + '<h2 class="pro-list-h3">商品详情 / <span class="subtitle">', n += i(s.name), n += '</span>'
                + '</h2>'
                + ' </div> '
                + '</div> '
                + '<div class="wrapper wrapper-content animated fadeInRight modify-bar"> '
                + '<div class="modify-time-bar">创建时间：<span class="create-pro-time">', n += i(s.created_time), n += "</span>状态：<span>", n += i(s.status_display), n += '</span></div>'
                + ' <div class="row">'
                + ' <div class="col-lg-12"> '
                + '<div class="ibox float-e-margins">'
                + ' <div class="ibox-content"> '
                + '<ul class="phone-ul clearfix"> '
                + '<li class="col-lg-6 phone-model"> '
                + '<div class="model-bar"> <div class="phone-bar">'
                + ' <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> 商品详情 </h3> '
                + '<div class="phone-con-bar">'
                + ' <img src="', n += i(s.picture), n += '" class="phone-pro-pic"> <div class="phone-pro-name-bar"> <h3 class="phone-pro-name" id="phone-product-name">', n += i(s.name), n += '</h3> <p class="phone-pro-brand" id="phone-brand">', n += i(s.brand_name), n += '</p> </div> <div class="format-bar">规格参数</div> <ul class="format-ul clearfix"> <li> <span class="format-name">商品条形码编号：</span> <span class="format-con" id="phone-product-bar">', n += i(s.bar_code), n += '</span> </li> <li> <span class="format-name">产地：</span> <span class="format-con" id="phone-product-place">', n += i(s.address), n += '</span> </li> <li> <span class="format-name">规格：</span> <span class="format-con" id="phone-product-format">', n += i(s.specification), n += "</span> </li> ", l(s.more_info, function (t, e) {
                    n += ' <li> <span class="format-name">', n += i(e), n += '：</span> <span class="format-con">', n += i(t), n += "</span> </li> "
                }), n += ' </ul> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-form" method="POST"> <ul class="create-ul create-w"> ', 2 == s.status && (n += ' <li class="opinion-bar"> <span class="opinion-con">修改意见：', n += i(s.reject_note), n += '</span> <a href="/pages/product/modify-product.html?product_id=', n += i(s.product_id), n += '" class="btn btn-info pull-right">立即修改</a> </li> '), n += ' <li> <p class="input-title create-ul-h5">品牌</p> <div class="brands-bar clearfix"> <div class="brands-box pull-left" id="form-control-create"> <div class=\'sole-brands\'>', n += i(s.brand_name), n += '</div> </div> </div> </li> <li> <p class="input-title create-ul-h5">商品名称</p> <input type="text" id="product-name" value="', n += i(s.name), n += '" readonly="readonly" class="form-control readonly-inp input-lg create-inp create-inp-num" maxlength="30" name="name"/> </li> <li> <p class="input-title create-ul-h5">商品条形码编号</p> <input type="text" id="product-bar" value="', n += i(s.bar_code), n += '" readonly="readonly" class="form-control readonly-inp input-lg create-inp create-inp-num" maxlength="13" name="bar_code"/> </li> <li> <p class="input-title create-ul-h5">产地</p> <input type="text" id="product-place" value="', n += i(s.address), n += '" readonly="readonly" class="form-control readonly-inp input-lg create-inp" name="address"/> </li> <li> <p class="input-title create-ul-h5">规格</p> <input type="text" id="product-format" value="', n += i(s.specification), n += '" readonly="readonly" class="form-control readonly-inp input-lg create-inp" name="specification"/> </li> <li> <p class="input-title create-ul-h5">图片</p> <div class="check-product-box see-pro"> <img src="', n += i(s.picture), n += '" id="check-product-pic" /> </div>  </li> ', l(s.more_info, function (t, e) {
                    n += ' <li> <p class="input-title create-ul-h5">', n += i(e), n += '</p> <input type="text" id="" value="', n += i(t), n += '" readonly="readonly" class="form-control readonly-inp input-lg create-inp" name="specification"/> </li> '
                }), n += ' <button onclick="window.history.back()" class="btn btn-w-m btn-warning see-pro">返回</button> </ul> </form> </li> </ul> </div> </div> </div> </div> </div> ', new o(n)
        }),
        t("product/product_modify", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$escape,
                l = t.detail,
                n = a.$each,
                c = (t.value, t.i, "");
            return c += '<div class="modify-time-bar">创建时间：<span class="create-pro-time">', c += s(l.created_time), c += "</span>状态：<span>", c += s(l.status_display), c += '</span></div> <div class="row"> <div class="col-lg-12"> <div class="ibox float-e-margins"> <div class="ibox-content"> <ul class="phone-ul clearfix"> <li class="col-lg-6 phone-model"> <div class="model-bar"> <div class="phone-bar"> <h3 class="phone-title"> <span class="iconfont icon-jiantou1 back-icon"></span> 商品详情 </h3> <div class="phone-con-bar"> <img src="', c += s(l.picture), c += '" class="phone-pro-pic show-img"> <div class="phone-pro-name-bar"> <h3 class="phone-pro-name" id="phone-product-name">', c += s(l.name), c += '</h3> <p class="phone-pro-brand" id="phone-brand">', c += s(l.brand_name), c += '</p> </div> <div class="format-bar">规格参数</div> <ul class="format-ul clearfix"> <li> <span class="format-name">商品条形码编号：</span> <span class="format-con" id="phone-product-bar">', c += s(l.bar_code), c += '</span> </li> <li> <span class="format-name">产地：</span> <span class="format-con" id="phone-product-place">', c += s(l.address), c += '</span> </li> <li> <span class="format-name">规格：</span> <span class="format-con" id="phone-product-format">', c += s(l.specification), c += "</span> </li> ", n(l.more_info, function (t, e) {
                c += ' <li class="mobile-show-li"> <span class="format-name">', c += s(e), c += '：</span> <span class="format-con">', c += s(t), c += "</span> </li> "
            }), c += ' </ul> </div> </div> </div> </li> <li class="col-lg-6"> <form class="error-tips-bottom create-product" id="create-form" method="POST"> <input type="hidden" name="product_id" value="', c += s(l.product_id), c += '" /> <ul class="create-ul create-w"> ', l.reject_note && "审核未通过" == l.status_display && (c += ' <li class="opinion-bar"> <span class="opinion-con">修改意见：', c += s(l.reject_note), c += "</span> </li> "), c += ' <li> <div class="product-brands-box"> <p class="input-title create-ul-h5">品牌<span class="red-color">*</span></p> <a href="/pages/account/brand-verify.html" class="new-brands">认证新品牌</a> <div class="brands-bar clearfix"> <div class="brands-box" id="form-control-create"> <input type="hidden" name="brand_id" value="', c += s(l.brand_id), c += "\" /> <div class='sole-brands'>", c += s(l.brand_name), c += '</div> </div> </div> </div> </li> <li> <p class="input-title create-ul-h5">商品名称<span class="red-color">*</span></p> <input type="text" placeholder="请输入不超过30个字的商品名称" class="form-control input-lg input-in create-inp create-inp-num" maxlength="30" id="product-name" name="name" value="', c += s(l.name), c += '"/> <span class="inp-num" id="product-name-num">', c += s(i.length(l.name)), c += '/30</span> </li> <li> <p class="input-title create-ul-h5">商品条形码编号<span class="red-color">*</span></p> <input type="text" placeholder="请输入13位标准的商品条形编号" class="form-control input-lg input-in create-inp create-inp-num" maxlength="13" id="product-bar" name="bar_code" value="', c += s(l.bar_code), c += '"/> <span class="inp-num" id="product-bar-num">', c += s(i.length(l.bar_code)), c += '/13</span> </li> <li> <p class="input-title create-ul-h5">产地<span class="red-color">*</span></p> <input type="text" placeholder="请输入商品的生产地址" class="form-control input-lg input-in create-inp" id="product-place" name="address" value="', c += s(l.address), c += '"/> </li> <li> <p class="input-title create-ul-h5">规格<span class="red-color">*</span></p> <input type="text" placeholder="请输入商品的规格" class="form-control input-lg input-in create-inp" id="product-format" name="specification" value="', c += s(l.specification), c += '"/> </li> <li> <div class="upload-product-box"> <p class="input-title input-title-img create-ul-h5">图片</p> <div class="imageBox verify-show file-inp-bar"> <div class="thumbBox"></div> <div class="spinner" style="display: none">Loading...</div> </div> <div class="note">（请选择大小不超过2M的图片）</div> <div class="action upload-file-img clearfix"> <div class="new-contentarea file-inp-bar tc"> <a href="javascript:void(0)" class="upload-img"> <label for="upload-file">选择图片</label> </a> <input type="file" class="upload-file-cropper" name="upload_file" id="upload-file"/> </div> <input type="button" id="btnZoomIn" class="Btnsty_peyton pull-left" value="+" > <input type="button" id="btnZoomOut" class="Btnsty_peyton pull-left" value="-" > <input type="button" id="btnCrop" class="Btnsty_peyton special-width pull-right" value="确定裁切"> </div> </div>  </li> ', n(l.more_info, function (t, e) {
                c += ' <li class="newadd-li"> <div class="input-group create-w"> <input type="text" class="form-control newadd" placeholder="添加标题" value="', c += s(e), c += '"/> <span class="input-group-btn"> <button type="button" class="btn btn-outline btn-danger newadd-remove">删除</button> </span> </div> <input type="text" placeholder="请输入想添加的内容" class="form-control input-lg input-in newadd-con" value="', c += s(t), c += '"/> </li> '
            }), c += ' <button type="button" class="btn btn-block btn-outline btn-success newadd-button">＋添加其他信息</button> <button type="submit" class="btn btn-w-m btn-primary">提交修改</button> </ul> </form> </li> </ul> </div> </div> </div> </div> ', new o(c)
        }),
        t("product-recommend/list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.recommend_products,
                l = (t.value, t.i, a.$escape),
                n = t.recommend_products_length,
                c = "";
            return c += '<table class="table table-bordered table-hover product-list-table" id="editable" > <thead> <tr> <th>商品推荐计划</th> <th>创建时间</th> <th class="col-lg-3">操作</th> </tr> </thead> <tbody> ', i(s, function (t, e) {
                c += ' <tr> <td><a href="/pages/product-recommend/modify.html?rid=', c += l(t.id), c += '&action=view" class="modify pro-name">', c += l(t.name), c += "</a></td> <td>", c += l(t.created_time), c += '</td> <td class="center"> <a href="/pages/product-recommend/modify.html?rid=', c += l(t.id), c += '" class="modify">修改</a> <a href="javascript:void(0)" class="modify del-recommend" data-rid="', c += l(t.id), c += '">删除</a> </td> </tr> '
            }), c += " </tbody> </table> ", 0 == n && (c += ' <div class="empty"> <div class="iconfont icon-no-product-information empty-icon"></div> <p class="empty-text">无商品推荐计划，<a href="/pages/product-recommend/create.html" class="create-link">立即创建</a></p> </div> '), c += " ", new o(c)
        }),
        t("product-recommend/phone_show", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.recommend,
                l = (t.value, t.i, a.$escape),
                n = "";
            return i(s.content, function (t, e) {
                n += ' <li> <img class="phone-recommend-img" src="', n += l(t.img_oss_url), n += '" > <p class="phone-recommend-text">', n += l(t.name), n += "</p> </li> "
            }), n += " ", new o(n)
        }),
        t("product-recommend/recommend_edit_form", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.rid,
                l = t.action,
                n = t.recommend,
                c = a.$each,
                r = (t.value, t.i, "");
            return r += '<input type="hidden" name="rid" value="', r += i(s), r += '" /> <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar"> <p class="clearfix input-title form-label-title"> <span class="pull-left">商品推荐计划</span> </p> <input type="text" name="name" class="input-in form-control" placeholder="请输入不超过15个字的推荐计划名称" ', "view" == l && (r += 'readonly="readonly"'), r += ' value="', r += i(n.name), r += '"> <span class="inp-num" id="inp-num">', r += i(n.name_length), r += '/15</span> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">关联商品</span> </p> <div id="product-list-tpl" class="product-list trace-order-id clearfix"> <select class="form-control form-control-sec selectpicker" name="product_ids" multiple data-none-selected-text="请选择关联商品" ', "view" == l && (r += 'readonly="readonly"'), r += ' data-none-results-text="请选择关联商品"> ', c(n.product_ids, function (t, e) {
                r += ' <option value="', r += i(t.product_id), r += '" selected="selected" ', "view" == l && (r += 'disabled="disabled"'), r += " >", r += i(t.product_name), r += "</option> "
            }), r += ' </select> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">推荐商品</span><span class="tips-trace">&nbsp;&nbsp;（最多设置6个推荐商品）</span> </p> <div class="recommend-bar"> <ul class="recommend-ul clearfix"> ', c(n.content, function (t, e) {
                r += " <li> ", "view" != l && (r += '<div class="delete"><i class="iconfont icon-shanchu delete-icon"></i></div>'), r += ' <img class="recommend-img" src="', r += i(t.img_oss_url), r += '" > <p class="recommend-text">', r += i(t.name), r += "</p> ", "view" != l && (r += ' <input type="hidden" name="url" value="', r += i(t.url), r += '"/> <input type="hidden" name="filename" value="', r += i(t.img), r += '"/> <input type="hidden" name="product_name" value="', r += i(t.name), r += '"/> '), r += " </li> "
            }), r += " ", "view" != l && (r += ' <li class="last-li ', n.content_length >= 6 && (r += " hidden "), r += '"> <div class="add"></div> <p class="recommend-text"></p> </li> '), r += ' </ul> </div> </div> </li> <li class="trace-btn"> ', r += "view" == l ? ' <a href="/pages/product-recommend/list.html" class="btn btn-w-m btn-warning">返回</a> ' : ' <button type="submit" class="btn btn-w-m btn-primary">提交修改</button> ', r += " </li> </ul> ", new o(r)
        }),
        t("activity/redbag/create-tpl", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.is_edit,
                l = a.$escape,
                n = t.name,
                c = t.start_time,
                r = t.end_time,
                d = t.contact,
                p = t.img_oss_url,
                u = t.img,
                h = t.note,
                m = a.$each,
                f = t.prize_conf,
                v = (t.value, t.i, i.fen_to_yuan),
                b = "";
            return b += '<ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">活动名称<span class="red-text">*</span></span> </p> <input type="text" name="name" class="input-in form-control" placeholder="请输入不超过15个字的活动名称" ', 1 == s && (b += 'value="', b += l(n), b += '"'), b += '> <span class="inp-num" id="product-bar-num">', b += 1 == s ? l(i.length(n)) : "0", b += '/15</span> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">活动期限<span class="red-text">*</span></span> </p> <div class="clearfix"> <input type="text" class="input-sm form-control form_datetime pull-left" id="start-time" name="start_time" ', 1 == s && (b += 'value="', b += l(c), b += '"'), b += ' placeholder="开始时间" readonly="readonly" /> <span class="prizes-interval pull-left">至</span> <input readonly="readonly" type="text" class="input-sm form-control form_datetime pull-left" id="end-time" name="end_time" ', 1 == s && (b += 'value="', b += l(r), b += '"'), b += ' placeholder="结束时间" /> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">咨询电话<span class="red-text">*</span></span> </p> <input id="change-mobile" type="text" name="contact" class="input-in form-control" placeholder="请输入本次活动的联系电话" value="', 1 == s && (b += l(d)), b += '"> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">关联商品<span class="red-text">*</span>&nbsp;&nbsp;&nbsp;（可多选）</span> </p> <div id="product-list-tpl" class="product-list selectpicker"></div> </li> <li> <p class="clearfix input-title has-img"> <span class="pull-left">企业logo<span class="red-text">*</span></span> </p> <div class="form-add-img"> <img alt="" width="100%" height="100%" src="', b += 1 == s ? l(p) : "/static/img/product-recommend/add-icons.png", b += '"> <label class="button-upload-img" for="upload-logo" ></label> <input type="file" name="img_el" id="upload-logo" class="add-file-inp file-input"> <input type="hidden" name="img" value="', 1 == s && (b += l(u)), b += '"> </div> <p class="add-spec">（请选择大小不超过2M的图片，建议尺寸180*180）</p> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">红包祝福语</span> </p> <input type="text" class="input-in form-control red-note" id="red-note" placeholder="默认：恭喜发财，大吉大利！" value="', 1 == s && (b += l(h)), b += '"> </div> </li> </ul> <ul class="create-ul create-red-bag"> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">配置红包<span class="red-text">*</span></span> </p> <table id="add-redbag" class="table table-bordered create-activity"> <thead> <tr class="title prizes-list"> <td class="all-prizes-name">奖品名称</td> <td class="">金额</td> <td class="">数量</td> <td class="">概率</td> <td class="">操作</td> </tr> </thead> <tbody> ', 1 == s ? (b += " ", m(f, function (t, e) {
                b += ' <tr class="amount-add" data-edit-id="', b += l(t.id), b += '"> <td>微信红包</td> <td> <div class="chance-input creat-redbag clearfix"> <input class="form-control pull-left money-in" type="text" required="required" readonly="readonly" value="', b += l(v(t.redbag_price, 2)), b += '"> </div> </td> <td> <div class="chance-input creat-redbag clearfix"> <input class="form-control pull-left amount-in" type="text" required="required" readonly="readonly" value="', b += l(t.amount), b += '" > </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-in" type="text" required="required" value="', b += l(i.chance_to_per(t.rate)), b += '" > <span class="pull-left unit">%</span> </div> </td> <td class="delete-color">- -</td> </tr> '
            }), b += " ") : b += ' <tr class="amount-add"> <td>微信红包</td> <td> <div class="chance-input creat-redbag clearfix"> <input class="form-control pull-left money-in" type="text" required="required" > </div> </td> <td> <div class="chance-input creat-redbag clearfix"> <input class="form-control pull-left amount-in" type="text" required="required" > </div> </td> <td> <div class="chance-input clearfix"> <input class="form-control pull-left chance-in" type="text" required="required" > <span class="pull-left unit">%</span> </div> </td> <td class="delete-color">- -</td> </tr> ', b += ' <tr id="last-account"> <td colspan="5" class="clearfix"> <p class="pull-left add-prizes-text"> <i class="fa fa-exclamation-circle" style="color: #4d9fd2;"></i>&nbsp;请为本次活动配置红包 </p> ', 1 !== s && (b += '<button type="button" class="btn btn-primary pull-right add-prizes" id="add-red-packet">添加红包</button>'), b += ' </td> </tr> </tbody> </table> <p id="redbag-tips" class="red-text no-prizes-chance hidden"></p> </li> <li> <button type="submit" class="btn btn-primary pull-left activity-next">', b += 1 == s ? "提交修改" : "创建活动", b += "</button> </li> </ul> ", new o(b)
        }),
        t("activity/redbag/detail-list", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = a.$each,
                l = t.flow_list,
                n = (t.value, t.i, a.$escape),
                c = i.fen_to_yuan,
                r = "";
            return s(l, function (t, e) {
                r += ' <tr> <td class="td-first">', r += n(t.service_type_display), r += " ", t.is_virtual && (r += '<span class="redbag-account-type"><i class="iconfont icon-zuojiantou"></i>虚拟</span>'), r += " </td> <td>", r += n(t.created_time), r += '</td> <td class="center">¥', r += n(c(t.amount, 2)), r += '</td> <td class="center">¥', r += n(c(t.balance, 2)), r += '</td> <td class="center">', r += "" == t.remark ? "--" : n(t.remark), r += "</td> </tr> "
            }), new o(r)
        }),
        t("activity/rotate/phone-con-box", function (t, e) {
            "use strict";
            var a = this,
                i = a.$helpers,
                s = t.edit,
                l = a.$each,
                n = t.prize_conf,
                c = (t.value, t.i, a.$escape),
                r = i.fen_to_yuan,
                d = "";
            return d += '<div class="phone-con-bar rotate-bg"> <div class="g-lottery-case"> <div id="lottery-box" class="lottery-box"> <div class="outer KinerLottery KinerLotteryContent"> <div id="lottery-area-box"> <ul class="lottery-area-ul"> <li class="lottery-area" id="thanks-li"> <img src="/static/img/activity/rotate/thanks.png" class="lottery-img" /> <p class="name">谢谢参与</p> </li> ', s && (d += " ", l(n, function (t, e) {
                d += " ", 3 == t.prize_kind ? (d += ' <li class="lottery-area"> <img src="/static/img/activity/redbag.png" class="lottery-img" /> <p class="name">微信红包', d += c(r(t.redbag_price, 2)), d += "元</p> </li> ") : (d += ' <li class="lottery-area"> <img src="', d += c(t.prize_img), d += '" class="lottery-img" /> <p class="name">', d += c(t.name), d += "</p> </li> "), d += " "
            }), d += " "), d += ' </ul> </div> </div> <div class="inner KinerLotteryBtn start"> </div> </div> </div> <h2 class="playnum-title front-medium">您还有<span id="lottery-time" class="playnum">1</span>次抽奖机会</h2> <a herf="javascript:;" class="lottery-my-prize front-medium">我的奖品</a> <div class="lottery-arrow"></div> <div class="lottery-rule"> <div class="title front-medium clearfix"> <div class="line-bg-l pull-left"></div> 活动细则 <div class="line-bg-r pull-right"></div> </div> <ol class="lottery-rule-ol"> <li><span class="list">1、</span>活动期限：<span id="start-time-phone">X</span>至<span id="end-time-phone">X</span>。</li> <li><span class="list">2、</span>参与条件：活动期间，每个商品被扫码并验证成功后，只可抽奖一次，不可重复抽奖。</li> <li><span class="list">3、</span>领取方式：抽中实物奖品后，奖品将由商家邮寄至收货人（确保联系方式、地址填写正确），请在有效期内完成兑换；电子奖券在有效期内可直接在对应平台使用；微信红包奖品将直接发送至微信钱包的零钱中。</li> <li><span class="list">4、</span>咨询电话：<span id="change-mobile-phone"></span></li> </ol> </div> <div class="lottery-bottom"></div> </div> ', new o(d)
        }),
        t("activity/rotate/prize-confing-phone", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.kind),
                s = a.$escape,
                l = t.prize_img,
                n = t.name,
                c = "";
            return 1 == i || 2 == i ? (c += ' <li class="lottery-area lottery-area-add"> <img src="', c += s(l), c += '" class="lottery-img" /> <p class="name">', c += s(n), c += "</p> </li> ") : (c += ' <li class="lottery-area lottery-area-add"> <img src="/static/img/activity/redbag.png" class="lottery-img" /> <p class="name">', c += s(n), c += "</p> </li> "), c += " ", new o(c)
        }),
        t("trace/static/list", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.trace_list,
                l = (t.value, t.i, a.$escape),
                n = t.trace_list_len,
                c = "";
            return c += '<table class="table table-bordered table-hover product-list-table" id="editable" > <thead> <tr> <th>名称</th> <th>创建时间</th> <th class="col-lg-3">操作</th> </tr> </thead> <tbody> ', i(s, function (t, e) {
                c += ' <tr> <td><a href="/pages/trace/static/show.html?trace_id=', c += l(t.id), c += '&action=view" class="modify pro-name">', c += l(t.name), c += "</a></td> <td>", c += l(t.created_time), c += '</td> <td class="center"> <a href="/pages/trace/static/create.html?action=edit&trace_id=', c += l(t.id), c += '" class="modify">修改</a> <a href="javascript:void(0)" class="modify del_trace" data-trace-id="', c += l(t.id), c += '">删除</a> </td> </tr> '
            }), c += " </tbody> </table> ", 0 == n && (c += ' <div class="empty"> <div class="iconfont icon-no-product-information empty-icon"></div> <p class="empty-text">无溯源信息，<a href="/pages/trace/static/create.html" class="create-link">增加静态溯源</a></p> </div> '), c += " ", new o(c)
        }),
        t("trace/static/phone_show", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$each),
                s = t.trace,
                l = (t.value, t.i, a.$escape),
                n = "";
            return n += '<li class="mobile-trace-title">商品追溯</li> ', i(s.content, function (t, e) {
                n += ' <li class="mobile-trace-list clearfix"> <p class="trace-step pull-left">第<span class="static-num">', n += l(e + 1), n += '</span>步</p> <div class="left-trace-info pull-left"> <div class="big-bg"></div> <p class="trace-content-title">', n += l(t.title), n += "</p> ", t.img_oss_url ? (n += ' <img src="', n += l(t.img_oss_url), n += '" alt="" height="132"> ') : n += ' <img class="hidden" src="" alt="img"> ', n += " </div> </li> "
            }), n += " ", new o(n)
        }),
        t("trace/static/show", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, a.$escape),
                s = t.trace,
                l = a.$each,
                n = (t.value, t.i, "");
            return n += '<ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">名称<span class="red-text">*</span></span> </p> <input readonly="readonly" type="text" name="name" class="input-in form-control" maxlength="30" placeholder="请输入不超过30个字的静态溯源名称" value="', n += i(s.name), n += '"> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">静态溯源<span class="red-text">*</span></span> </p> <ul class="static-trace-box"> <li class="static-list-title">商品追溯</li> ', l(s.content, function (t, e) {
                n += ' <li class="static-list first clearfix"> <p class="static-step pull-left">第<span class="static-num">', n += i(e + 1), n += '</span>步</p> <div class="right-trace-msg pull-left"> <div class="big-bg"></div> <textarea name="trace_title" readonly="readonly" class="trace-title pull-left" placeholder="">', n += i(t.title), n += "</textarea> ", t.img_oss_url && (n += ' <div class="trace-img pull-left"> <label class="button-upload-img" style="background-image:url(\'', n += i(t.img_oss_url), n += "');\"></label> </div> "), n += ' </div> <div class="handle-box"> <span class="iconfont delete-btn icon-shanchu hidden"></span> <span class="iconfont add-btn icon-weibiaoti2zhuanhuan hidden"></span> </div> </li> '
            }), n += ' </ul> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">关联订单<span class="red-text">*</span></span><span class="tips-trace">&nbsp;&nbsp;（可多选）</span> </p> <div id="product-list-tpl" class="product-list" style="background-color: #eaeaea;border-radius: 4px;"> <select class="form-control form-control-sec selectpicker" name="order_id" multiple data-none-selected-text="请选择关联订单" data-none-results-text="请选择关联订单"> ', s && (n += " ", l(s.batch_ids, function (t, e) {
                n += ' <option value="', n += i(t), n += '" selected="selected" disabled="disabled">', n += i(t), n += "</option> "
            }), n += " "), n += ' </select> </div> </li> <li class="trace-btn"> <a href="/pages/trace/static/list.html" class="btn btn-w-m btn-warning back-trace">返回</a> </li> </ul> ', new o(n)
        }),
        t("trace/static/trace_edit_form", function (t, e) {
            "use strict";
            var a = this,
                i = (a.$helpers, t.action),
                s = a.$escape,
                l = t.trace_id,
                n = t.trace,
                c = a.$each,
                r = (t.value, t.i, "");
            return "edit" == i && (r += ' <input name="trace_id" type="hidden" value="', r += s(l), r += '"> '), r += ' <ul class="create-ul create-w"> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">名称<span class="red-text">*</span></span> </p> <input type="text" name="name" class="input-in form-control" style="padding-right: 50px;" maxlength="30" placeholder="请输入不超过30个字的静态溯源名称" value="', n && (r += s(n.name)), r += '"> <span class="inp-num" id="product-bar-num">', r += n ? s(n.name.length) : "0", r += '/30</span> </div> </li> <li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">', r += "edit" == i ? "修改" : "增加", r += '静态溯源<span class="red-text">*</span>&nbsp;&nbsp;&nbsp;<span id="trace-title-error" class="red-text hidden">商品溯源标题必填</span></span> </p> <ul class="static-trace-box"> <li class="static-list-title">商品追溯</li> ', n ? (r += " ", c(n.content, function (t, e) {
                r += ' <li class="static-list first clearfix"> <p class="static-step pull-left">第<span class="static-num">', r += s(e + 1), r += '</span>步</p> <div class="right-trace-msg pull-left"> <div class="big-bg"></div> <textarea name="trace_title" class="trace-title pull-left" placeholder="">', r += s(t.title), r += '</textarea> <div class="trace-img pull-left"> <label class="button-upload-img" for="upload-img', r += s(e), r += '" ', t.img_oss_url && (r += "style=\"background-image:url('", r += s(t.img_oss_url), r += "');\""), r += '></label> <input type="file" id="upload-img', r += s(e), r += '" class="file-input" value="', r += s(t.img), r += '"> <input type="hidden" name="filename" value="', r += s(t.img), r += '"/> </div> </div> <div class="handle-box"> <span class="iconfont delete-btn icon-shanchu hidden"></span> <span class="iconfont add-btn icon-weibiaoti2zhuanhuan hidden"></span> </div> </li> '
            }), r += " ") : r += ' <li class="static-list first clearfix"> <p class="static-step pull-left">第<span class="static-num">1</span>步</p> <div class="right-trace-msg pull-left"> <div class="big-bg"></div> <textarea name="trace_title" class="trace-title pull-left" placeholder="请输入溯源信息"></textarea> <div class="trace-img pull-left"> <label class="button-upload-img" for="upload-img"></label> <input type="file" id="upload-img" class="file-input" value=""> </div> </div> <div class="handle-box"> <span class="iconfont delete-btn icon-shanchu hidden"></span> <span class="iconfont add-btn icon-weibiaoti2zhuanhuan hidden"></span> </div> </li> ', r += ' </ul> </div> </li> <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">关联订单<span class="red-text">*</span></span><span class="tips-trace">&nbsp;&nbsp;（可多选）</span> </p> <div id="product-list-tpl" class="product-list" style="background-color: #eaeaea;border-radius: 4px;"> <select class="form-control form-control-sec selectpicker" name="order_id" multiple data-none-selected-text="请选择关联订单" data-none-results-text="请选择关联订单"> ', n && (r += " ", c(n.batch_ids, function (t, e) {
                r += ' <option value="', r += s(t), r += '" selected="selected">', r += s(t), r += "</option> "
            }), r += " "), r += ' </select> </div> </li> <li class="trace-btn"> ', r += "edit" == i ? ' <button type="submit" class="btn btn-w-m btn-primary back-trace">提交修改</button> ' : ' <button type="submit" class="btn btn-w-m btn-primary back-trace">立即创建</button> ', r += " </li> </ul> ", new o(r)
        }),
            t("trace/static/trace_edit_form2", function (t, e) {
                "use strict";
                var a = this,
                    i = (a.$helpers, t.action),
                    s = a.$escape,
                    l = t.trace_id,
                    n = t.trace,
                    c = a.$each,
                    r = (t.value, t.i, "");
                return "edit" == i && (r += ' <input name="trace_id" type="hidden" value="', r += s(l), r += '"> '), r += ' <ul class="create-ul create-w"> ' +
                    //'<li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">名称<span class="red-text">*</span></span> </p> <input type="text" name="name" class="input-in form-control" style="padding-right: 50px;" maxlength="30" placeholder="请输入不超过30个字的静态溯源名称" value="', n && (r += s(n.name)), r += '"> <span class="inp-num" id="product-bar-num">', r += n ? s(n.name.length) : "0", r += '/30</span> </div> </li> ' +
                    '<li> <div class="tips-title clearfix inp-bar prizes"> <p class="clearfix input-title form-label-title"> <span class="pull-left">', r += "edit" == i ? "修改" : "增加", r += '溯源信息<span class="red-text">*</span>&nbsp;&nbsp;&nbsp;<span id="trace-title-error" class="red-text hidden">商品溯源标题必填</span></span> </p> <ul class="static-trace-box"> <li class="static-list-title">商品追溯</li> ', n ? (r += " ", c(n.content, function (t, e) {
                        r += ' <li class="static-list first clearfix"> <p class="static-step pull-left">第<span class="static-num">', r += s(e + 1), r += '</span>步</p> <div class="right-trace-msg pull-left"> <div class="big-bg"></div> <textarea name="trace_title" class="trace-title pull-left" placeholder="">', r += s(t.title), r += '</textarea> <div class="trace-img pull-left"> <label class="button-upload-img" for="upload-img', r += s(e), r += '" ', t.img_oss_url && (r += "style=\"background-image:url('", r += s(t.img_oss_url), r += "');\""), r += '></label> <input type="file" id="upload-img', r += s(e), r += '" class="file-input" value="', r += s(t.img), r += '"> <input type="hidden" name="filename" value="', r += s(t.img), r += '"/> </div> </div> <div class="handle-box"> <span class="iconfont delete-btn icon-shanchu hidden"></span> <span class="iconfont add-btn icon-weibiaoti2zhuanhuan hidden"></span> </div> </li> '
                    }), r += " ") : r += ' <li class="static-list first clearfix"> <p class="static-step pull-left">第<span class="static-num">1</span>步</p> <div class="right-trace-msg pull-left"> <div class="big-bg"></div> <textarea name="trace_title" class="trace-title pull-left" placeholder="请输入溯源信息"></textarea> <div class="trace-img pull-left"> <label class="button-upload-img" for="upload-img"></label> <input type="file" id="upload-img" class="file-input" value=""> </div> </div> <div class="handle-box"> <span class="iconfont delete-btn icon-shanchu hidden"></span> <span class="iconfont add-btn icon-weibiaoti2zhuanhuan hidden"></span> </div> </li> ', r += ' </ul> </div> </li>'
                
                    //+' <li> <p class="clearfix input-title form-label-title"> <span class="pull-left">关联订单<span class="red-text">*</span></span><span class="tips-trace">&nbsp;&nbsp;（可多选）</span> </p> <div id="product-list-tpl" class="product-list" style="background-color: #eaeaea;border-radius: 4px;"> <select class="form-control form-control-sec selectpicker" name="order_id" multiple data-none-selected-text="请选择关联订单" data-none-results-text="请选择关联订单"> ', n && (r += " ", c(n.batch_ids, function (t, e) {
                    //r += ' <option value="', r += s(t), r += '" selected="selected">', r += s(t), r += "</option> "
                    //}), r += " "), r += ' </select> </div> </li>' +
                    //' <li class="trace-btn"> ', r += "edit" == i ? ' <button type="submit" class="btn btn-w-m btn-primary back-trace">提交修改</button> ' : ' <button type="submit" class="btn btn-w-m btn-primary back-trace">立即创建</button> ', r += " </li> </ul> "
                    ,new o(r)
            })
    }();

    /*---------------------------------------------------------html生成器end------------------------------------------------*/



    //var tipsBombObj = {
    //    tipsKinds: "撤销审核",
    //    tipsText: "公司未实名认证，请认证后再对品牌进行认证，是否进行实名认证？",
    //    btnLeftUrl: "javascript:;",
    //    btnLeftFunction: "",
    //    btnLeftText: "取消",
    //    btnRightUrl: "javascript:;",
    //    btnRightFunction: "",
    //    btnRightText: "确定",
    //    btnState: "",
    //    closePageText: "",
    //    redirectUrl: ""
    //};

    /*----------------------------验证码插件start----------------------------------------*/
    /*function前加！表示函数强制立即执行*/
    !function (t) {
        /*一个空对象，可用来判定当前页面是否有 CMD 模块加载器*/
        "function" == typeof define && define.amd ? define(["jquery"], t) : t(jQuery)
    }(function (t) {
        "use strict";
        var e = function (a, i) {
            this.options = t.extend({}, e.defaults, i), this.$element = t(a), this.init()
        };
        e.pluginName = "verifycode", e.dataName = "verifycodeData", e.version = "1.0.0", e.defaults = {
            mobileInput: "",
            countDown: 60,
            captchaKind: null,
            requireCodeUrl: "",
            isCountDown: !1,
            isCaptchaFilled: !1,
            withoutCaptcha: !1
        }, e.prototype = {
            init: function () {
                this.renderDialog(), this.regSendBtn(), this.regClose(), this.regRequireCode()
            },
            renderDialog: function () {
                if (0 == t("#captcha-dialog").length) {
                    var e = template("captcha-dialog", {});
                    t("body").append(e)
                }
            },
            regSendBtn: function () {
                var t = this;
                this.$element.on("click", function () {
                    return t.verifyMobile() ? t.options.withoutCaptcha ? t.request() : t.showDialog() : add_errors(t.options.mobileInput, "手机号格式不正确")
                })
            },
            regClose: function () {
                var e = this;
                t("#close-btn").on("click", function () {
                    e.closeDialog()
                })
            },
            regRequireCode: function () {
                var e = this;
                t("#require-code-btn").on("click", function () {
                    e.request()
                })
            },
            verifyMobile: function () {
                var e = t('input[name="' + this.options.mobileInput + '"]').val();
                return /^[1][34578]\d{9}$/.test(e)
            },
            showDialog: function () {
                this.options.isCountDown || (t("#captcha").val(""), t("#captcha-dialog").find(".tips-error").text(""), this.fillCaptcha(), this.diaplayDialog())
            },
            fillCaptcha: function () {
                this.options.isCaptchaFilled ? refreshCaptcha("captcha-img") : (this.options.isCaptchaFilled = !0, Captcha("captcha-img", this.options.captchaKind))
            },
            diaplayDialog: function () {
                t("#captcha-dialog").removeClass("hidden")
            },
            closeDialog: function () {
                t("#captcha-dialog").addClass("hidden")
            },
            addError: function (e) {
                t("#captcha-dialog").find(".tips-error").text(e)
            },
            countDown: function () {
                var t = this;
                this.options.isCountDown = !0;
                var e = this.options.countDown,
                    a = t.$element.text();
                t.$element.text(e + "s"), e -= 1;
                var i = setInterval(function () {
                    e > 0 ? (t.$element.text(e + "s"), e -= 1) : (clearInterval(i), t.options.isCountDown = !1, t.$element.text(a))
                }, 1e3)
            },
            request: function () {
                if (!this.options.isCountDown) {
                    var e = this,
                        a = t("#captcha").val();
                    return e.options.withoutCaptcha || /^\d{4}$/.test(a) ? void t.ajax({
                        url: this.options.requireCodeUrl,
                        timeout: 5e3,
                        type: "POST",
                        data: {
                            mobile: t('input[name="' + this.options.mobileInput + '"]').val(),
                            kind: this.options.captchaKind,
                            captcha_key: t("#captcha_key").val(),
                            captcha: t("#captcha").val()
                        },
                        crossDomain: !0,
                        xhrFields: {
                            withCredentials: !0
                        },
                        success: function (t) {
                            switch (t.code) {
                                case ERRORCODE.SUCCESS:
                                    e.countDown(), e.closeDialog();
                                    break;
                                case ERRORCODE.ACCOUNT_INVALID_CAPTCHA:
                                    e.addError("图片验证码错误"), refreshCaptcha("captcha-img");
                                    break;
                                case ERRORCODE.SEND_VERIFICATION_OVER_RATE:
                                    e.closeDialog(), add_errors("mobile", "发送频率太快，请稍后再试");
                                    break;
                                case ERRORCODE.FAILED:
                                    e.addError("短信验证码请求失败");
                                    break;
                                case ERRORCODE.INVALID_CAPTCHA:
                                    e.addError("图片验证码输入错误"), refreshCaptcha("captcha-img");
                                    break;
                                case ERRORCODE.HAD_USED:
                                    e.addError("您的手机号已被使用，请直接登录或更换手机号");
                                    break;
                                case ERRORCODE.NOT_FOUND:
                                    e.addError("您输入的手机号尚未注册");
                                    break;
                                case ERRORCODE.NOT_REGISTER_MOBILE:
                                    e.addError("原手机号码和注册号码不一致");
                                    break;
                                default:
                                    e.addError("短信验证码请求失败！")
                            }
                        },
                        error: function (t, a, i) {
                            e.addError("验证失败，请重新验证")
                        },
                        complete: function () { }
                    }) : this.addError("请填写正确的验证码")
                }
            }
        };
        var a = t.fn[e.pluginName];
        t.fn[e.pluginName] = function (a, i) {
            return this.each(function () {
                var s = t(this),
                    l = t.fn[e.pluginName].pluginData[s.data(e.dataName)],
                    n = "object" == typeof a && a;
                l || (t.fn[e.pluginName].pluginData[++t.fn[e.pluginName].pluginData.index] = new e(this, n), s.data(e.dataName, t.fn[e.pluginName].pluginData.index), l = t.fn[e.pluginName].pluginData[s.data(e.dataName)]), "string" == typeof a && null == i && l[a](), "string" == typeof a && i && l[a].apply(l, i)
            })
        }, t.fn[e.pluginName].pluginData = {
            index: 0
        }, t.fn[e.pluginName].Constructor = e, t.fn[e.pluginName].noConflict = function () {
            return t.fn[e.pluginName] = a, this
        }
    });

    /*----------------------------验证码插件end----------------------------------------*/